instance method no_routes

Ruby on Rails 5.2.8.1

Since v4.0.13 Last seen in v5.2.8.1

Available in: v4.0.13 v4.1.16 v4.2.9 v5.2.8.1

Signature

no_routes(routes)

No documentation comment.

Parameters

routes req
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close