invocation
1 2 3 4 5 6 7 8 9 10 |
ben@folio pts/ttys000 [~/projects/work/project] 47/536 {0}$ rake routes:matching[/v2/things/100/otherthings] (in /Users/ben/projects/work/project) Routing match for /v2/things/100/otherthings ======================================================================== Controller: v2/things/otherthings Action: index Parameters: {:format=>"json", :thing_id=>"100"} |
task
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
namespace :routes do task :matching, [:path] => :environment do |_, args| result = ActionController args, :method => :get controller = result( :controller ) action = result( :action ) puts # blank line puts "Routing match for " puts "=" * 72 puts "Controller: " puts "Action: " puts "Parameters: " end end |

