Hi,

I haven't touched Ruby for a while. How do you replace link_to_remote
text after  user clicks on them? Once a user clicks 'Delete this post,'
I want the text gets replaced to 'pending request' -- is there any easy
way to do this?

<%= link_to_remote('Delete this post', :complete => 'pending request',
           :url => { :controller => "posts",
:action => "delete",:id => "delete_link" + post_item.id.to_s,
:post_id => post_item.id})%>
-- 
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