开发者

Areas feature in rails

Asp.net mvc 2.0 is introducing Areas feature. I am wondering what is the equivalent of asp.net mvc areas in ruby on rails framework? How rails hand开发者_如何学Cles the modules/sub sites functionality?


I don't know the ASP.NET MVC definition of Areas, but at a glance it appears to be similar to the Rails-Engines. Although the intended purpose of Rails Engines, is to develop and distribute plugins as if they were mini applications. There's no reason you couldn't use Rails-Engines to achieve [what google leads me to believe is] the functionality of Areas.

Using Rails-Engines to implement Areas would mean designing each of your sub sites as a plugin. With some creative symlinking you won't even notice the difference.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜