app/controllers/application_controller.rb
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
Prevent CSRF attacks by raising an exception.
For APIs, you may want to use :null_session instead.
Prevent CSRF attacks by raising an exception . For APIs you may want to use : null_session instead .
def layout_by_signin
      if !cookies[:access_token].nil?
        "bare"
      else
        unless user_signed_in?
          "users"
        else 
          "application"
        end
      end
    end
def layout_by_signin if ! cookies [ :access_token ] . nil? "bare" else unless user_signed_in? "users" else "application" end end end
Prevent CSRF attacks by raising an exception.
Prevent CSRF attacks by raising an exception .