not sure if I can help fully, but here goes -

Chapter 6 of http://hobocentral.net/books/hobo-at-work.pdf describes
how lifecycles work.

to put up a form for a comment, the transition definition should be
something like...

transition :foo,     { :start => :finish } , :params =>
[:comment], :available_to => :user

normally :comment would be a field in this model, and by default hobo
makes a <foo-page> with a <foo-form> which you can use or override.

to update another model during the transition, you need to add code
for the transition in your controller, something like

def do_foo
  do_transition_action :foo do
     # code for updating your  other model goes here...
  end
end

i hope this helps
paul


On Aug 1, 11:45 am, Spiralis <[email protected]> wrote:
> I have a feeling that I have read something about this earlier, but
> cannot seem to find the information anywhere.
>
> I have a model that is using states and transitions. Now, when certain
> transitions take place I need the user to supply a comment. This
> comment is not the same model, and I cannot seem to figure out how to
> include it. After transition is submitted this comment should also be
> persisted.
>
> I also have a couple of places where I consider adding view-only
> fields to the transition. Fields that are not to be persisted, but
> used as logics in the transition block.
>
> Regards,
> Ronny

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