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
1 changed files with 2 additions and 2 deletions

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)`.
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
class UsersController < ApplicationController