I tried recognize_path but it seems to be looking for more information
than
I’m giving it based on your code there.
r.recognize_path “/admin/users”
ActionController::RoutingError: no route found to match “/admin/users”
with
{}
from
./script/…/config/…/config/…/vendor/rails/actionpack/lib/action_controller/routing.rb:1299:in
`recognize_path’
from (irb):6
r.recognize_path “admin/users”
ActionController::RoutingError: no route found to match “admin/users”
with
{}
from
./script/…/config/…/config/…/vendor/rails/actionpack/lib/action_controller/routing.rb:1299:in
`recognize_path’
from (irb):7
r.recognize_path “/admin/users/”
ActionController::RoutingError: no route found to match “/admin/users/”
with
{}
from
./script/…/config/…/config/…/vendor/rails/actionpack/lib/action_controller/routing.rb:1299:in
`recognize_path’
from (irb):8
r.recognize_path “/admin/users/new”
ActionController::RoutingError: no route found to match
“/admin/users/new”
with {}
from
./script/…/config/…/config/…/vendor/rails/actionpack/lib/action_controller/routing.rb:1299:in
`recognize_path’
from (irb):9
I will say that the results you’re getting aren’t what I’d expect but I
can’t seem to manage to make them for myself.
That’s why I used “/admin/users” as a path [something I do have a path
for
in my routing] instead of what you were using. If you look at that
empty
hash there, that’s the problem. It’s looking for a params hash most
likely
but I haven’t mucked around in the source looking for documentation so I
can’t tell for sure.
RSL
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.