Displaying 1 result from an estimated 1 matches for "vendor_".
Did you mean:
vendor
2009 Jan 18
2
InvalidAuthenticityToken error with remote_form_for
...-%>
<td><%= f.text_field :name, :size => 15 %></td>
<td><%= f.text_field :location, :size => 15 %></td>
<td><%= f.submit ''save'' %></td>
<% end -%>
-- partial :
<% @vendor = vendor %>
<tr id="vendor_<%= vendor.id %>">
<td><%= vendor.name %></td>
<td><%= vendor.location %></td>
</tr>
-- controller :
def create
@vendor = Vendor.new(params[:vendor])
if @vendor.save
respond_to do |format|
flash[:notice] = "New vendor #...