How to customize to_json response in Rails 3

前端 未结 3 1698
孤独总比滥情好
孤独总比滥情好 2020-12-31 05:00

I am using respond_with and everything is hooked up right to get data correctly. I want to customize the returned json, xml and

3条回答
  •  旧巷少年郎
    2020-12-31 05:29

    It is not the rails 3 built-in way, but I found a great gem that is actively maintained on Rails 3: acts_as_api

提交回复
热议问题