1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix Typo xml -> XML, json -> JSON

This commit is contained in:
Prathamesh Sonpatki 2013-05-08 23:56:30 +05:30
parent c3a5ea6ef6
commit 6abc361836

View file

@ -568,10 +568,10 @@ end
Note that while for session values you set the key to `nil`, to delete a cookie value you should use `cookies.delete(:key)`. Note that while for session values you set the key to `nil`, to delete a cookie value you should use `cookies.delete(:key)`.
Rendering xml and json data Rendering XML and JSON data
--------------------------- ---------------------------
ActionController makes it extremely easy to render `xml` or `json` data. If you've generated a controller using scaffolding, it would look something like this: ActionController makes it extremely easy to render `XML` or `JSON` data. If you've generated a controller using scaffolding, it would look something like this:
```ruby ```ruby
class UsersController < ApplicationController class UsersController < ApplicationController