Your first question/problem.  Accessing a controller action from a lifecycle 
is bad form and possibly not doable (certainly shouldn't be done).  
Remember, transitions are in the model and as such have no context about the 
current interaction/session/http request etc.  If you want to do a redirect 
or the like, you need to do that in the controller.

Your second question/problem... you need to call another transition from a 
transition's block?

>From the lifecycle manual:

Each transition becomes a method on the lifecycle object (with ! appended). 
The first parameter to the method is the user and the second optional 
parameter is a hash of the params defined in :params.

An example call:

bar.lifecycle.foo!(user, :baz => "bat" )


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