Remote_form_for javascript tag

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 ?

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