Sha256: 661b10e7b81c6e398eead8788085b9dbce47cb537aa754a6b754f8d0e2b73d12

Contents?: true

Size: 393 Bytes

Versions: 160

Compression:

Stored size: 393 Bytes

Contents

desc 'Print out all defined routes in match order, with names. Target specific controller with CONTROLLER=x.'
task :routes => :environment do
  Rails.application.reload_routes!
  all_routes = Rails.application.routes.routes

  require 'rails/application/route_inspector'
  inspector = Rails::Application::RouteInspector.new
  puts inspector.format(all_routes, ENV['CONTROLLER']).join "\n"
end

Version data entries

160 entries across 121 versions & 19 rubygems

Version Path
railties-3.2.22.5 lib/rails/tasks/routes.rake
railties-3.2.22.4 lib/rails/tasks/routes.rake
railties-3.2.22.3 lib/rails/tasks/routes.rake
railties-3.2.22.2 lib/rails/tasks/routes.rake
railties-3.2.22.1 lib/rails/tasks/routes.rake
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/tasks/routes.rake
railties-3.2.22 lib/rails/tasks/routes.rake
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/railties-3.2.12/lib/rails/tasks/routes.rake
railties-3.2.21 lib/rails/tasks/routes.rake
railties-3.2.20 lib/rails/tasks/routes.rake
railties-3.2.19 lib/rails/tasks/routes.rake
railties-3.2.18 lib/rails/tasks/routes.rake
railties-3.2.17 lib/rails/tasks/routes.rake
railties-3.2.16 lib/rails/tasks/routes.rake
railties-3.2.15 lib/rails/tasks/routes.rake
railties-3.2.15.rc3 lib/rails/tasks/routes.rake
railties-3.2.15.rc2 lib/rails/tasks/routes.rake
railties-3.2.15.rc1 lib/rails/tasks/routes.rake
railties-3.2.14 lib/rails/tasks/routes.rake
railties-3.2.14.rc2 lib/rails/tasks/routes.rake