First let me ask: Do you really want a many-to-many relationship between
teams and users?
Iff so, here are my suggestions:
to 1.: You already have
in teams
> has_many :team_users
> has_many :users, :through => :team_users, :readonly => false
reverse in users
and in users
> has_many :team_users
> has_many :teams, :through => :team_users, :readonly => false
? Then set in teams_controller:
conf.columns[:users].set_ui = :select
> conf.columns[:users].options = {:draggable_lists => true}
to 2.:
Read
https://github.com/activescaffold/active_scaffold/wiki/Custom-Association-Optionsand
for current_user handling in AS-controllers
https://github.com/activescaffold/active_scaffold/wiki/Security
Regards and Good Luck!
Michael
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/activescaffold/-/FYwRf2y-IdMJ.
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.