start with the permissions on the child model.  create_permitted? should 
check that the parent is set and the value is appropriate.

Then you probably want the new/create action to be an owned 
action<http://cookbook.hobocentral.net/manual/controllers#owner_actions>instead 
of standard so that the parent is properly set.

Aside: I prefer to think of booleans in true/false.  DB storage varies, in 
ruby truth is not nil or false.  Anything else is true

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/hobousers/-/nXAQSTl6cOMJ.
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