the header is part of the HTML page, so we don’t construct it here.
# File lib/action_dispatch/routing/inspector.rb, line 217 def header(routes) end
# File lib/action_dispatch/routing/inspector.rb, line 220 def no_routes @buffer << <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="http://guides.rubyonrails.org/routing.html">Rails Routing from the Outside In</a>. </li> </ul>.strip_heredoc end
# File lib/action_dispatch/routing/inspector.rb, line 233 def result @view.raw @view.render(layout: "routes/table") { @view.raw @buffer.join("\n") } end
Generated with the Darkfish Rdoc Generator 2.