Displaying 1 result from an estimated 1 matches for "form_post".
Did you mean:
forum_post
2007 Jun 03
3
remote_form_for issue
...to change my current forms in my app to remote_forms. It was
my understanding that remote_form_for and form_for work in the same way,
so I just wanted to change the methods. My code looks like:
<% form_remote_for :post, :url => posts_url do |f| %>
<%= render :partial => ''form_posts'', :locals => {:f => f} %>
<%= table_submit_tag "Chercher" %>
<% end %>
The problem of this code is that it generates an empty form:
<form id="foo" onsubmit="new Ajax.Request(''http://localhost:3000/posts/'',
{asynchronou...