acts_as_api enriches the models and controllers of your app in a rails-like way so you can easily determine how your XML/JSON API responses should look like.
Christian Bäuerlein
gem "acts_as_api", "~> 0.3.8"