# Submit Link

**URL:** <https://www.ruby-forum.com/t/submit-link/173568>\
**Category:** Rails\
**Created:** [August 11, 2009, 3:20pm UTC](https://www.ruby-forum.com/t/submit-link/173568 "2009-08-11T15:20:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hemantborole](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b782af/32.png) [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Post date:** [August 11, 2009, 3:20pm UTC](https://www.ruby-forum.com/t/submit-link/173568/1 "2009-08-11T15:20:41Z")

</div>

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 … 🙂

---

<div class="post-metadata">

**Author:** ![hemantborole](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b782af/32.png) [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Post date:** [August 11, 2009, 6:32pm UTC](https://www.ruby-forum.com/t/submit-link/173568/2 "2009-08-11T18:32:51Z")

</div>

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 … 🙂

the link\_to\_remote method takes a :submit option that will do what you  
want. See the docs at [api.rubyonrails.org](http://api.rubyonrails.org).

HTH,  
Bill
