Hi.
I want to user the following link_to_remote with a polymporphic_url.
<%= link_to_remote "delete", :url => blog_entry_photo_path(entry,
photo),:confirm => "Are your sure?", :method => :delete %>
This generates a not working link, without the photo_id.
<%= link_to_remote 'delete', polymorphic_url([entry, photo], {:format =>
'js'}), :confirm => 'Are you sure?', :method => :delete %>
Can anyone help me.
Thanks
Michael
--
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
-~----------~----~----~----~------~----~------~--~---