模块化 Rails 应用程序

问题描述:

我正在寻找一种模块化 Rails 应用程序的方法.正如我所见,没有内置的方法来完成它.我发现了不同的插件/核心技巧,但我对它们的工作方式和成熟度感到不信任.

I'm looking for a way to modularize Rails applications. As I've seen there is no built-in way of accomplishing it. I've found different plugins/core hacks but I feel untrusted about the way they work and their maturity.

你有这方面的经验吗?

到目前为止,我找到了这些:

So far I found this ones:

Rails 引擎是当前稳定 Rails 2.X 的一部分,因此不再是真正的黑客".如果您想向应用程序添加相当粗粒度的应用程序功能,它们似乎很合适——一个很好的例子可能是向另一个应用程序添加博客或 CMS 风格的功能.在此处查看引擎上的 railscast:http://railscasts.com/episodes/149-rails-engines

Rails engines are part of the current stable rails 2.X and so aren't really "hacks" anymore. They seem like a good fit if you want to add fairly course-grained application functionality to an application - a good example might be adding a blog or CMS-style functionality to another application. Checkout the railscast on engines here: http://railscasts.com/episodes/149-rails-engines

如果你想在前端模块化——更多的小部件"风格,你可能想看看单元格:http://github.com/apotonick/cells/

If you're looking to modularize on the front end - more "widget" style, you might want to look at cells: http://github.com/apotonick/cells/