Rails3 是否提供任何钩子来插入可插拔、可重复使用的组件?
Rails 3 为鼓励代码重用做了哪些努力?是否有类似于框架中内置的 merb 切片/引擎的东西,允许我放入可配置组件(例如“博客”引擎)?如果是这样,什么是最佳实践?
What efforts have been made in rails 3 to encourage code re-use? Is there anything akin to merb slices / engines built into the framework that would allow me to drop in a configurable component such as a 'blog' engine? If so, what is considered best practice?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
关于俄罗斯套娃和可安装应用程序
Rails 3 中最热门的新功能之一是能够将 Rails 应用程序嵌入另一个 Rails 应用程序。这允许开发从用户身份验证到功能齐全的论坛的组件。
请参阅此处了解更多信息
您还可以使用 Rack with Rails。
On Russian dolls and mountable apps
One of the hottest new features in Rails 3 is the ability to embed a Rails application in another Rails application. This allows the development of components that range from user authentication to a fully featured forum.
See here for more
You can also use Rack with Rails.