* Account has many Users * So when an account admin LCRUD's users, these should only be the users from the admin's certain account. * I need a deeper functionality than "conditions_for_collection" or "beginning_of_chain", because of an authorization layer (CanCan bridge coming soon), in the sense that user records should always be wired with the associated account from the moment of their creation. * This makes a great case for the **nested** functionality. * I'm on rails3 (volker's fork)
So what I want is the Users scaffold to always be nested under the current account. I would need to: 1. either declare in controller somehow to always scope stuff under @current_account. 2. either create a link_to users, :scoped => @current_account, and prevent access to records based on security. I'm not sure how feasible this is being that volker's nested is session-dependent (is it?) I would prefer 1. but either would do. Any advice, hints much appreciated. -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en.
