Matt, that worked (as far as hitting submit and all) but now my error
messages (required field) isn't showing up?  I have left edit and
update as hobo-automatic generated controller actions.  I have only
overridden the "edit.dryml" page itself.

It comes back to my page, but the error message "XXXX is a required
field (or whatever the standard message is)" is not showing up.   I am
sure it has something to do with my non-standard machinations.

On Apr 25, 11:25 am, Matt Jones <[email protected]> wrote:
> 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