On Mar 20, 7:44 pm, acts_as_jason <[email protected]> wrote:
> Try...
>
> <%= link_to 'Edit', edit_path(rec) %>
>
> I am not positive about "edit_path", but you can run rake routes to
> get the specific path.
>
Nearly! edit_polymorphic_path is the helper needed. For delete it's
even easier, link_to 'delete', a_rec, :method => :delete.
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 [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
-~----------~----~----~----~------~----~------~--~---