Thanks Kevin!
We've finished a few minutes ago the second approach that you describe.
It's not very clean, because we have the company form being served by
the users_controller... but it works.
I think we might try the first approach to check if it's cleaner.
Thanks,
TF
On 12/29/2010 06:02 PM, kevinpfromnm wrote:
I have not done this before but maybe making the child model
accessible would allow it to be used as a parameter?
If that doesn't work, you'd need to be able to pass the appropriate
parameters to the transition and make the model in the transition.
Yet another option, make a regular new/create for the child but create
permission requires parent to be in appropriate state, then add an
after_create hook to transition the parent.
All in all, nothing that seems terribly clean/simple but not
outrageous either.
--
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.