respond_with alternatives in rails 4.2 for backbone
In rails 4.2 respond_with and respond_to have been moved to the responders gem. I've read that this is not the best practice. I use backbone.js for my app. For render all users in controller I use: class UsersController < ApplicationController respond_to :json def index @users = User.all respond_with @users end end What are the alternatives? It's only respond_with and the class level respond_to that have been removed as indicated here . You can still use the instance level respond_to as always class UsersController < ApplicationController def index @users = User.all respond_to do |wants| wants