token不对的话,那就跳转到登陆页面

at_guange
lizanle 10 years ago
parent 7aff7bc20b
commit 1e33e38fe2

@ -663,7 +663,8 @@ class ApplicationController < ActionController::Base
if api_request?
logger.error "Form authenticity token is missing or is invalid. API calls must include a proper Content-type header (text/xml or text/json)."
end
render_error "Invalid form authenticity token."
#render_error "Invalid form authenticity token."
redirect_to signin_path(:login=>true)
end
def render_feed(items, options={})

Loading…
Cancel
Save