Sha256: af58772e07ec25e92f9125eb419325bef982fe82e9802d709c49b5675fcec5de
Contents?: true
Size: 397 Bytes
Versions: 128
Compression:
Stored size: 397 Bytes
Contents
desc 'Print out all defined routes in match order, with names. Target specific controller with CONTROLLER=x.' task routes: :environment do all_routes = Rails.application.routes.routes require 'action_dispatch/routing/inspector' inspector = ActionDispatch::Routing::RoutesInspector.new(all_routes) puts inspector.format(ActionDispatch::Routing::ConsoleFormatter.new, ENV['CONTROLLER']) end
Version data entries
128 entries across 124 versions & 10 rubygems