# Remote\_form\_for javascript tag

**URL:** <https://www.ruby-forum.com/t/remote-form-for-javascript-tag/191418>\
**Category:** Rails\
**Created:** [July 12, 2010, 12:58pm UTC](https://www.ruby-forum.com/t/remote-form-for-javascript-tag/191418 "2010-07-12T12:58:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![neilbain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/b487fb/32.png) [@neilbain](https://www.ruby-forum.com/u/neilbain)\
**Post date:** [July 12, 2010, 12:58pm UTC](https://www.ruby-forum.com/t/remote-form-for-javascript-tag/191418/1 "2010-07-12T12:58:38Z")

</div>

I have the following form which I want to refresh using javascript.

\<% remote\_form\_for :comment, :url=\>story\_comments\_path(@story), :html =\>  
{ :id =\> ‘comment\_form’ } do |form| %\>

##### Make a comment:
  

\<%= form.text\_field :body %\>
  

\<%= submit\_tag ‘Comment’ %\>

I have tried using form\_remote\_tag in place of remote\_form\_for but I get  
the following error.

wrong number of arguments (2 for 1)

How can I add the required tag to remote\_form\_for ?

Could I use form\_remote\_tag, if so how would I need to modify the code ?
