Open giovapanasiti opened 5 years ago
I need to print the controller for each path under a constraint but it isnt working
Create a sample app with routing constraints and then just try to run
controller = Rails.application.routes.recognize_path(endpoint[1], method: endpoint[0].downcase.to_sym)[:controller]
for each element of rake routes
rake routes
Normally it prints the controller
Routing error
Rails (or ActiveRecord) version: 5.2.2
Ruby version: 2.5.1
how does this relate to apartment? i don't see any apartment related code in your example and you've not provided any trace for the error indicating how apartment is involved :)
I need to print the controller for each path under a constraint but it isnt working
Steps to reproduce
Create a sample app with routing constraints and then just try to run
for each element of
rake routes
Expected behavior
Normally it prints the controller
Actual behavior
Routing error
System configuration
Rails (or ActiveRecord) version: 5.2.2
Ruby version: 2.5.1