模块化 Rails 应用程序 [英] Modularizing Rails applications

查看:56
本文介绍了模块化 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/

这篇关于模块化 Rails 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆