如何设计基于 Ruby on Rails 插件的应用程序,并为每个操作提供基于用户的权限?
我很难决定我的新 Ruby on Rails 应用程序的架构。我对 Rails 没有太多的高级知识,因为我之前只在 2 个小项目中使用过它。
我需要帮助为具有以下复杂要求的应用程序找到最佳设计:
1) 必须基于插件。插件将通过用户界面启用/禁用。当插件被禁用时,所有与插件相关的材料都应该从系统中消失(链接,所有内容)并且不应该被访问。
2) 系统必须能够为每个定义的操作拥有基于用户(而非组)的权限系统。定义的操作可能非常不同。从使插件对用户可见到执行单个操作(访问单个页面等)。
我应该能够使用 Rails 插件框架中的插件系统。我正在读这个。我只是不确定从用户界面控制启用/禁用哪些插件的最佳方法是什么。
非常感谢所有帮助。
多谢。
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 GREATLY appreciated.
Thanks a lot.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论