From cc2c5facb3a6d7de986018943c2a83f3496b88da Mon Sep 17 00:00:00 2001 From: Pat Nakajima Date: Fri, 1 Aug 2008 21:47:01 -0400 Subject: [PATCH] added note to readme about setting include_root_in_json config to false --- README.textile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.textile b/README.textile index dbca4ba..1fac926 100644 --- a/README.textile +++ b/README.textile @@ -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)