Como especifico ": layout => false" em respond_with do Rails?
Eu tenho esta configuração:
class UsersController < InheritedResources::Base
respond_to :html, :js, :xml, :json
def index
@users = User.all
respond_with(@users)
end
end
Agora estou tentando fazer isso, separams[:format] =~ /(js|json)/
, render :layout => false, :text => @users.to_json
. Como faço isso comrespond_with
ourespond_to
e herdou_ recursos?