Hi Hemant, On Tue, 2009-08-11 at 15:20 +0200, Hemant Bhargava wrote: > Hello Champs > > Actually the thing is that i am submitting an form using a submit tag.. > also i am passing an hidden id using it as well .. > Code style is like this:- > form action-- id -- > hidden field -- > submit_tag -- > end > > Now, i want all this to work for an link also .. I mean if i'll click on > link that should do the same work .. > > Can i do it .. > If yes, Let me know .. :)
the link_to_remote method takes a :submit option that will do what you want. See the docs at api.rubyonrails.org. HTH, Bill --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

