The user_controller code is different from the standard transition code. You
can get the behavior you're expecting with:
def do_signup
hobo_do_signup do
redirect_to destination_after_submit if valid?
end
end
This should probably be fixed.
--Matt Jones
On Jan 27, 2011, at 12:04 PM, Mark Sobkowicz wrote:
> Some further investigation of this.
>
> I added <after-submit uri="/events" /> to my user signup form. The input
> hidden line appears in the form, and the parameter is sent on to the
> controller. But the user create controller ignores it. Is the
> hobo_user_controller create different so that it would ignore the passed
> "after-submit" parameter?
>
> Mark
>
>
>
>
>
> On Jan 24, 2011, at 10:32 AM, Mark Sobkowicz wrote:
>
>> I am trying to put an <after-submit go-back/> statement in the signup form,
>> and it did not work at all. (Hobo 1.3 pre25)
>>
>> In applications.dryml I put:
>>
>> <def tag="signup-form" polymorphic/>
>> <def tag="signup-form" for="User">
>> <form lifecycle="signup" merge param="default">
>> <error-messages param/>
>>
>> <field-list fields="name, email_address, password, password_confirmation"
>> param/>
>> <div param="actions">
>> <submit label="#{ht 'user.actions.signup', :default=>['Signup']}"
>> param/><or-cancel param="cancel"/>
>>
>> </div>
>> <after-submit go-back/>
>> </form>
>> </def>
>>
>>
>> To see what I was doing wrong, I replaced it with
>>
>> <after-submit uri="/events" /> and that also did nothing.
>
> --
> 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.
>
--
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.