You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.
If you try to access a "roles_on_routes protected" route in the CarePlanning engine e.g. "GET /care_planning/resources", then roles_on_routes throws the following error:
ActionController::RoutingError (No route matches "/care_planning/resources"):
actionpack (3.2.22.2) lib/action_dispatch/routing/route_set.rb:642:in recognize_path' /opt/boxen/rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/bundler/gems/roles_on_routes-b502875b3d89/lib/roles_on_routes/engine_aware_route_set.rb:31:inrecognize_path'
HOWEVER ..........
If you switch the order of mounts in routes.rb, then it appears to work without any problems
Consider the following application routes ...
If you try to access a "roles_on_routes protected" route in the CarePlanning engine e.g. "GET /care_planning/resources", then roles_on_routes throws the following error:
ActionController::RoutingError (No route matches "/care_planning/resources"):
actionpack (3.2.22.2) lib/action_dispatch/routing/route_set.rb:642:in
recognize_path' /opt/boxen/rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/bundler/gems/roles_on_routes-b502875b3d89/lib/roles_on_routes/engine_aware_route_set.rb:31:in
recognize_path'HOWEVER ..........
If you switch the order of mounts in routes.rb, then it appears to work without any problems
So, it looks like both mounts starting with the same text (e.g. '/care') is causing the problem. Weird!
The text was updated successfully, but these errors were encountered: