Dear all,

I just started using Hobo and I am amazed. It is crazily good.

However, I cannot manage to solve a little problem.

I would like to have one profile per user, and that profile should
only be created by that user.
I don't want to have a new Profile at top-level and then check that
they choose the acting user in the form.

I would rather have an "owner action", where someone, from his
account, would have a link create a profile to /users/:user_id/profile/
new

However, I cannot manage to have owner actions working for has_one.

So I used has_many and checked in the permission that the user has
currently no profile (acting_user.profiles.empty?).

It is a bit less straightforward than I would like. I am doing
something wrong?

Is it possible to use owner action and has_one?
What would be your advices?

Best regards,

Nicolas.

PS: I don't want to include the profile in the user model because
there would be multiple kind of profile depending of the user.

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