On Sun, Dec 19, 2010 at 5:03 PM, Mike C <[email protected]> wrote:
> I'm a little confused about custom routes in rails 3. I have a
> variable that I had a default value for in rails 2, and changing it to
> rails 3 version gives this:
>
> match 'stories/list/:story_list/:search' => 'stories#index', :as =>
> 'story_list', :story_list => 'popular', :search => nil
>
> When I use the route, I just call story_list_path(:story_list =>
> 'search', :search => 'something')
>
> this worked in rails 2, but I'm getting this error in rails 3:
>
> No route matches {:story_list=>"search", :controller=>"stories"}
>
> I can't find out how to fix this as tutorials on the web just go over
> basic changes and what not.
>

what is your output of :
% rake routes | grep stories

-- 
make haste slowly \
festina lente  \
-
mobile  +1_415_632_6001
[email protected]
http://robotarmyma.de

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to