This code block here throws a warning message in Rails console — warning: else without rescue is useless
def handle_exceptions(e)
case e
when ActionController::UnknownAction, ActiveRecord::RecordNotFound, ActionController::RoutingError
not_found
else
internal_error(e)
end
end
Any clue why?
i think that this error is not from the source code you posted but from where it is called.
i can prove it with this implementation, which also uses 1.9.2-p290: