简体   繁体   中英

Rails 3.1 - Developing with Mountable Engines

I am developing 2 apps for 2 separate clients, and a 3rd for myself. All 3 apps will have an address book, emailing, and user authentication. Finally, I want the apps to be created "modular" so that I can add (or remove) modules as they are needed.

I have watched the Mountable Engines Railscast and it looks like what I need, yet I am still unclear on the following:

  1. How do you develop each engine module (user authentication, emailing, address book) separately without a common base application?
  2. How do you develop the address book module when it requires user authentication, which is a separate module altogether?

I'm guessing that you develop the user authentication first, and include that in the dummy app of the engine module, but I'm getting confused with the namespacing of the engine.

It might be useful to note that I come from a C# background and I am new to web-development.

People have already written authentication and emailing plugins. For most apps, the only work left to be done for those modules is customization.

You might want to write a engine to share some of the customizations and to share some of the address book functionality. In in that case, you can consider developing an example app which has as little custom code as possible to clearly define the address book api.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM