Forum: Ruby on Rails Unknown Action error while updating record

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
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)

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

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

This topic is locked and can not be replied to.