Route match error with 2 parameters


match ‘bugs/:pr/:scope/info’ => ‘bugs#info’, :as=>:bug_info

rake routes

bug_info /bugs/:pr/:scope/info(.:format)
{:controller=>“bugs”, :action=>“info”}

In my view i used bug_info_path(:pr=>1,:scope=>2) and i get an error

No route matches
{:scope=>“2”, :action=>“info”, :controller=>“bugs”, :pr=>1}

What’s wrong with the route? I have the controller, action and view

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs