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| %> <h5><label for="login">Make a comment:</label></h5> <div id="body"><%= form.text_field :body %></div> <p><%= submit_tag 'Comment' %></p>
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 ?