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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.


Reply via email to