Rails скрыть поле в JSON
respond_to do |format|
format.json { render :json => @user, :except=> [:ip] } # or without format block: @user.to_json(:except => :ip)
end
Repulsive Rattlesnake