What is the best way to add some API-ish behaviour to a standard Rails 
application ? I mean, is it possible to add some new actions to a 
controller or modify the existing ones so that they return JSON (without 
specifying JSON extension in the URL (like *http://myhost.com/books* and 
not *http://myhost.com/books.json* and be able to return either HTML or 
JSON in the same time? Thank you.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/524908f4-4d15-4ca3-817a-e16f42a1cd77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to