documentcloud/backbone — pull request #1444 by christopherwright (2012-06-23 11:54:19+00:00)
Title: Fix a few typos in documentation, and note that Rails >= 3.1 doesn't namespace to_json

Aside from the typo changes, I added comments specifying that only Rails versions prior to 3.1 default namespacing for a model's `to_json` method.

E.g. For a new project in Rails 3.0.15 with no changes to config:

λ rails console
Loading development environment (Rails 3.0.15)
irb(main):001:0> puts Entry.first.to_json
{"entry":{"created_at":"2012-06-23T07:42:42Z","id":1,"name":"bob","updated_at":"2012-06-23T07:42:42Z"}}

On Rails 3.1:

λ rails console
Loading development environment (Rails 3.1.0)
irb(main):009:0> puts Entry.first.to_json
{"created_at":"2012-06-23T07:47:29Z","id":1,"name":"bob","updated_at":"2012-06-23T07:47:29Z"}