On Apr 26, 10:58 pm, got_nil <awesomedomainsh...@googlemail.com> wrote:
> But, what happens when I go to "/foos/1/edit". This is not matching > "map.connect ':controller/:action/:id'" since action and id are > switched. Is scaffold doing some magic here, that I can't find in the > sources? When I add a method, say "my_edit" with the exact content of > the "edit" method, i get "Unknown action No action responded to 1.", > what I expected because my URI is not matching the map.connect in the > routes.rb. > > Short questions: > How does rails know the routing of /foos/1/edit without the > map.connect? > When i want to create something like that, how do I do that? > map.resources is short hand for defining a bunch of routes. See http://guides.rubyonrails.org/routing.html for more details Fred -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.