Thanks, Tom.
Yes, I re-read the Lifecycles section of the Manual and finally got
how to do it:
You want to override the second controller action generated by your
Lifecycle step (creator or transition), which is the do_<step_name>
action.
Then in that step, you want to supply the :redirect argument to the
do_transition_action method (or do_creator_action, for a creator),
passing it the symbol name for the next step in your lifecycle.
So, for example:
For the transition step called "give_date", which should then go to
the transition step called "give_time_of_day", the controller should
look like this:
------------------------------------------------------------------
class DeliveriesController < ApplicationController
[...]
def do_give_date
do_transition_action :give_date, :redirect => :give_time_of_day
end
[...]
end
------------------------------------------------------------------
On Feb 18, 4:02 am, Tom Locke <[email protected]> wrote:
> > In other words, I would like to declare where to send a user after
> > they have visited my :give_date step.....
>
> > I would love to be able to put it in the do...end block at the end of
> > my transition declaration. But it seems like it might be more
> > appropriate in the controller.
>
> Yes, it should go in the controller. There are docs for that in the
> lifecycles chapter and the controllers and routing chapter.
>
> Tom
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---