Skip to content

Commit

Permalink
added note to readme about setting include_root_in_json config to false
Browse files Browse the repository at this point in the history
  • Loading branch information
nakajima committed Aug 7, 2008
1 parent bffafad commit cc2c5fa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.textile
Expand Up @@ -60,6 +60,13 @@ pass a different URL in, you can do that as well:

edit_in_place([@list, @item], :name, :url => weird_item_path(@item))

h4. If you're using a newer version of Rails...

You might need to tell ActiveRecord not to include the root while serializing
to JSON. To do so, put this line in an initializer, or environment.rb:

ActiveRecord::Base.include_root_in_json = false

h3. TODO

* Escape key should cancel (simple event handler)
Expand Down

0 comments on commit cc2c5fa

Please sign in to comment.