Hi,
I have a form using the following syntax, and it works just fine:
<% form_tag({:action => :process_form}, :id => 'contact') do %>
Brandon
> -----Original Message-----
> From: [email protected] [mailto:rubyonrails-
> [email protected]] On Behalf Of [email protected]
> Sent: Wednesday, April 15, 2009 4:12 PM
> To: Ruby on Rails: Talk
> Subject: [Rails] Unknown Action error while updating record
>
>
> 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
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---