josh.rachner-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2009-Apr-15 20:11 UTC
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails- > talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] On Behalf Of josh.rachner-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---