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