instance method
no_routes
Ruby on Rails 7.0.10
Since v4.0.13Signature
no_routes(*)
No documentation comment.
Parameters
-
argsrest
Source
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 253
def no_routes(*)
@buffer << <<~MESSAGE
<p>You don't have any routes defined!</p>
<ul>
<li>Please add some routes in <tt>config/routes.rb</tt>.</li>
<li>
For more information about routes, please see the Rails guide
<a href="https://guides.rubyonrails.org/routing.html">Rails Routing from the Outside In</a>.
</li>
</ul>
MESSAGE
end
Defined in actionpack/lib/action_dispatch/routing/inspector.rb line 253
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::HtmlTableFormatter