I think you should use do_signup instead of create because you're
inside a lifecycle.

  def do_signup
     do_creator_action :signup, :redirect => '/my_special_place' do
       flash[:notice] = 'Success!'
     end
  end


best regards
eddie

On Jan 27, 2:04 pm, Mark Sobkowicz <[email protected]> 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.

Reply via email to