Run a

rake routes >routes.lst

then look at the routes.lst file. This wil show you all the routes that 
mapping a resource generates for you by default.

What you're trying to do is alter the default behavior of restful 
routing.  Your desired edit route is the default routing for show.  If 
you override that, then you have to provide an alternative for the show 
method.

If this is a pervasive desire that you simply *must* have, then I'd 
suggest forgoing the restful routes in general, and dropping back to the 
old routing method.

Get rid of the resource mapping, and "roll your own" routes. But the 
nice thing about restful routes is the notion of programming by 
convention
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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