How to add a new custom resource to routes Rails 3
Posted
by Jeroen janssen
on Stack Overflow
See other posts from Stack Overflow
or by Jeroen janssen
Published on 2010-05-27T12:01:11Z
Indexed on
2010/06/06
9:22 UTC
Read the original article
Hit count: 228
How do I add a custom route for a new resource in the Rails 3 routes?
I know how to do it for collections and members but this style doesn't seem to be working for new resources. Is this a bug or am I doing something wrong?
So these work:
collection do
get :wish
end
member do
get :wish
end
But this doesn't work:
new do
get :wish
end
© Stack Overflow or respective owner