Hi Suranyami, I used the Rails Auth plugin and it works, but you have to add an ID to the roles_users table yourself.
The relationship between user and role was at some point changed from habtm to has_many through, but there was not a primary key added to the roles_users table, so it didn't work with ActiveScaffold (it is still brittle, but with workarounds good enough) see also http://github.com/DocSavage/rails-authorization-plugin/commit/41909669e3fc2515037e6736fea6bd0550467e63#comment_16596 Success, Frank See also http://groups.google.com/group/activescaffold/browse_thread/thread/b12a0501d6a8c6a7/c70ab31fc2218bfa?hl=en#c70ab31fc2218bfa On Jun 2, 4:14 am, suranyami <[email protected]> wrote: > Has anyone had any success in using the Rails Authorization Plugin > with ActiveScaffold. > > We have added per-object authorization constraints throughout our > controllers, which has been very nice and convenient. We're now > looking at using ActiveScaffold to speed up the development of > numerous list/edit/show forms that we need to make for many new > models, most with fairly trivial CRUD requirements. > > ActiveScaffold seems to prefer the path of "roll your own" > authorization methods, which is fine, I guess, for simple stuff. We > have multiple organisations using our models, though, and each org > requires quite secure isolation from each other, so Rails > Authorization Plugin is ideal. > > So, anyone tried it? Any opinions (or even code samples)? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
