I believe the problem is hobo might not be able to figure out where to
go (despite the after-submit).  You may have to edit the create method
to avoid the redirect.  http://cookbook.hobocentral.net/manual/controllers
for more general info, including what's needed to be able to replace
an hobo auto action.

On Sep 1, 3:15 pm, Mark Sobkowicz <[email protected]> wrote:
> I just noticed that the problem is worse, I am taken to
>
> http://localhost:3000/assignments/1-thing/responses
>
> with an edit button that takes you tohttp://edit
>
> On Sep 1, 2010, at 5:11 PM, Mark Sobkowicz wrote:
>
> > I have two models Assignment and Response, and on the Assignment show page 
> > is a form for Response, with
>
> > auto_actions_for :assignment, :create
>
> > in the Response Controller.
>
> > I also have an after submit tag, so you stay on the same page after you 
> > submit your response
>
> > <after-submit uri="#{url_for(this_parent)}" />
>
> > This all works great now, but then I tried to add validation to the 
> > Response model.  The Response model has a body field, and I put
>
> > body :html, :required
>
> > When I submit an empty response, the validation works - no record is 
> > created, but the after-submit is ignored, and I am taken to a Response show 
> > page with no error message shown.  
>
> > Any ideas for fixes or workarounds?
>
> > Mark

-- 
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