1 2 3 4 5 6 7 8 9 10 11
class ApiController < ApplicationController skip_before_filter :verify_authenticity_token respond_to :json def require_login require_token end end