Forum: Ruby on Rails Unknown Action error while updating record

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
(Guest)
on 2009-04-16 02:04
(Received via mailing list)
I understand other people have had trouble using :action => 'update'
with form_tag... but I haven't figured it out yet... here is my
declaration of the form:

<% form_tag :action => 'update', :html => {:method => "put"} do %>

I tried just using <% form_tag :action => 'update' % do>, along with
other structures... It just says UNKNOWN ACTION since it is trying to
use the id as the action...

Can anyone help??

I would like to keep it as a form_tag though. Thanks in advance for
the help
Brandon O. (Guest)
on 2009-04-16 02:14
(Received via mailing list)
Hi,

I have a form using the following syntax, and it works just fine:

<% form_tag({:action => :process_form}, :id => 'contact') do %>

Brandon
This topic is locked and can not be replied to.