Submit Link

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 … :slight_smile:

Hi Hemant,

On Tue, 2009-08-11 at 15:20 +0200, Hemant B. wrote:

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 … :slight_smile:

the link_to_remote method takes a :submit option that will do what you
want. See the docs at api.rubyonrails.org.

HTH,
Bill

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs