News for hackers. Stuff that matters.
Re:CloudEdit: A Backbone.js Tutorial with Rails by steveklabnik on Tuesday February 01, 2011 @08:55AM (#2165445)
His example app is running Rails 2.3.8, and also includes this little option that's important:

    ActiveRecord::Base.include_root_in_json = false
If that's not in your environment, it changes the JSON from {"id":n, ... to {"doument":{"id":n,..., which is kind of a big difference.

James, I'd consider adding a note about this to your tutorial. Also, the link to your GitHub is a fake one; I managed to guess it properly though. Oh, and all of your commits show you as both the committer and the author, I think your git config is wrong. Make sure git config --global author.email is your github email.

Re:CloudEdit: A Backbone.js Tutorial with Rails by steele on Tuesday February 01, 2011 @10:47AM (#2165876)
I only ask because cross-site request forgery protection is enabled by default in Rails 3 and require some extra coaxing with its authenticity token. Since this is in Rails 2.3.8 as you've highlighted, it's a moot point.
Re:CloudEdit: A Backbone.js Tutorial with Rails by jamesjyu on Tuesday February 01, 2011 @10:00AM (#2165691)
Oh man, that is embarrassing. Link is fixed now. I'll add a note about the json later.
Re:CloudEdit: A Backbone.js Tutorial with Rails by steveklabnik on Tuesday February 01, 2011 @10:37AM (#2165826)
No worries, it happens to everyone. :D