How do I design a Ruby on Rails plugin based application with user based privileges for each action?
I'm having a hard time deciding the architecture for my new Ruby on Rails application. I don't have much advanced knowledge about Rails since I've only used it for 2 small projects before.
I need help finding the best design for an application with the following complex requirements:
1) Must be plugin based. Plugins will be enabled/disabled through the user interface. All plugin related material should disappear from the system when it's disabled (links, everything) and it shouldn't be accessible.
2) The system must be able to have a user (not group) based privileges system for every defined action. Defined actions can be very different. All from making plugins visible to users to making a single action (accessing single pages, etc.).
I should be able to use the plugin system in the Rails framework for plugins. I'm reading up on this. I'm just not sure what's the best way to control from the user interface what plugins are enabled/disabled.
All help is GREA开发者_运维百科TLY appreciated.
Thanks a lot.
精彩评论