Hi,

I'm currently playing with routes, and can't seem to find the solution
for this

i want to change the link of edit for a person
at the moment I have in route
map.resources :persons

and in the index of person's view folder i have
edit_person_path(person)

but it creates the link to
/persons/11/edit

i would like to change it like delete
/persons/11

I tried to do <link_to "edit",person , :method=>:get>
but it brings me to the show, which is the problem , I would like in
routes to say all :get for this persons goes to edit and not show.

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