Camille Roux
2010-Jan-07 13:21 UTC
How to use the same params in respond_to for some formats?
Hello, I want to make an API in XML and JSON (maybe more), and I want most of the time use the same parameters for the to_xml and the to_json at least (same :include, :only, :except, :methods). What is the best way to do that? Thank you, Camille Roux -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.