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 ensure_site
    unless site.is_a?(Site)
      redirect_to setup_path(:step1)
    end
  end
def ensure_site unless site . is_a? ( Site ) redirect_to setup_path ( :step1 ) end end
Prevent CSRF attacks by raising an exception.
Prevent CSRF attacks by raising an exception .