Flowdock

Notes posted by robinshe

RSS feed
June 23, 2010
1 thank

how I use it

def rescue_action_in_public(exception)

case exception

when ActiveRecord::RecordNotFound, ActionController::UnknownAction, ActionController::RoutingError
  redirect_to errors_path(404), :status=>301
else
  redirect_to errors_path(500)
end

end