routes.db

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
defined

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedOct 11, '11 at 1:18a
activeOct 11, '11 at 1:18a
posts1
users1
websiterubyonrails.org
irc#RubyOnRails

1 user in discussion

Maskiran: 1 post

People

Translate

site design / logo © 2021 Grokbase