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:
parent
c3a5ea6ef6
commit
6abc361836
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue