On Miércoles, 24 de Junio de 2009 19:14:06 shiju pc escribió: > Hi friends, > > I am reaching with new query. I am using Role, Users and these two > modes joined with "Roles_Users" model. > And another model previllaiges that association with the Roles_users. > Suppose i am creating a new user with role "client" this have > previlaiage like read and execute previllaiges. > So my problem is that while i am creating a new user, the Roles are > displayed as drop down. And i am chossing one role the corresponding > previlaiges drop down box need to changed (AJAX) to display only the > corresponding previlaiges on respect to the Role.
Look at our wiki, chaining form fields section: http://wiki.github.com/activescaffold/active_scaffold/chaining-form-fields You should add options_for_association_conditions for previllaiges filtering with the chosen role. Adding the update_column option in role, you get rendering again previllaiges field when role selection is changed. -- Sergio Cambra .:: entreCables S.L. ::. Mariana Pineda 23, 50.018 Zaragoza T) 902 021 404 F) 976 52 98 07 E) [email protected] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
