O'Reilly logo
  • LIANG LIANG thinks this is interesting:

respond_to :json

From

Cover of RESTful Rails Development

Note

for rails 4.2+, respond_to has been moved to gem responders. Need add 'gem reponders' into Gemfile, then run 'bundle install'. Detailed info could be refered here: https://github.com/plataformatec/responders