These changes allow Geddy to behave more like an API when dealing with certain content types. I added two helper methods in base_controller so that our scaffolding doesn't get too bulky.
You still need to make some minor changes to Backbone (howdy, #382) in order to get Geddy to do content negotiation correctly. See this gist for an example.
This is missing tests as I'm not sure how to write them yet.. Testing controllers is weird.
Handle API-style requests
p.s. the first few letters of the commit hash (ebdcbbc) make a cool jingle on the piano.
Awesome, looks a little complicated though, I'll have to digest it a bit more. @mde, thoughts?
This is good stuff. I think there may be some ways to make this a little bit cleaner, but this is an excellent first stab at it. I'll take a look at this over the next couple of days. I'd love for more people to chime in on this with ideas.
respond_to is a Rails2 thing, and respond_with is a Rails3 thing.
Merge remote-tracking branch 'mde/master' into api-patch
Merge branch 'master' into api-patch
Superseded by: #398