I have this helper / link_to_remote link I am trying to switch from
destroy/delete to a separate method/action. Here is the original code.
link_to_remote image_tag(''delete.png'', :class =>
''png'', :width=>''12'',
:height=>''12''), :url => profile_message_path(@p,
message), :method => :delete
Current path that produces looks like this
/profiles/1-username/messages/4
I need it to become
/profiles/1-username/messages/remove/4
I don''t think I am understanding the api docs for this such as
profile_message_path to be able to figure out how to add another
method/action to that URL string. What should my code look like to get
that?
--~--~---------~--~----~------------~-------~--~----~
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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---