On Apr 25, 2011, at 2:12 PM, Tuishimi wrote:

> Very funny.  :)
> 
> Urf.  In an overridden form, how do I specify that the submit should
> go to the "update" method.
> 
> <form with=&@the_object action=update>

This is sort of an unfortunate collision with the Hobo attributes for <a> and 
the standard HTML attributes for the <form> tag - passing 'action' to the form 
tag switches *off* the REST-style routing that's built in. By default, doing 
this:

<form with="&@the_object">
...

will get you a form that either POSTs to /the_class (for create actions, if 
@the_object.new_record? is true) or PUTs to /the_class/:id (for update actions).

--Matt Jones

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en.

Reply via email to