instance method
no_routes
Ruby on Rails 5.2.8.1
Since v4.0.13 Last seen in v5.2.8.1Signature
no_routes(routes)
No documentation comment.
Parameters
-
routesreq
Source
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 150
def no_routes(routes)
@buffer <<
if routes.none?
<<-MESSAGE.strip_heredoc
You don't have any routes defined!
Please add some routes in config/routes.rb.
MESSAGE
else
"No routes were found for this controller"
end
@buffer << "For more information about routes, see the Rails guide: http://guides.rubyonrails.org/routing.html."
end
Defined in actionpack/lib/action_dispatch/routing/inspector.rb line 150
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::ConsoleFormatter