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 ?
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to