![]() While isolated engine is a whole application on it's own. For example probably almost all of your modules will be using something like EventDispatcher module. Still, encapsulation of responsibilities is important, but there will be some connections. Modules of your application probably will share models, api or some business logic. It's more like a "subapplication" of you application. It's not suitable for a "module" of your application. Some may think that's choosing between isolated and not isolated is a bit like a matter of preference. I think there is a misunderstanding about what an isolated engine is. I prefer posting my questions before instead of posting my errors after the attempt! Is there an alternative?ĭo you have any advices before I jump in the engine's world? It's working well but I'm not sure that it is a good practice. The objective is to put all the necessary code inside the core app but use this code depending on the present of engines or not.ĭuring my test time I used: if defined? = Activity.allĪnd render it the views something like this: ![]() For example inside the side bar I want to display the list of the last activities but only if the activities engine is used. Inside the core app i'll put the code that all the engines need. Are there others advantages of mountable engine even if I'm not planning to use them in another app? If I'm the only one writing code for this app is it a bad habit to use a full engine(it's just a laziness question). But I also understand the risk for the class collisions. I try both of them and I think that the full option is really fast to implement (no routing, no namespace isolation that I have to be aware of). I read a lot about this subject, lot of people seem to use mountable engines. ![]() I was think about something like: Coreappname_functionalityįor exemple I want to add activities for my members the engine will be named : member_activities How do you name your engines? My first attempt was to name it by their function but when I generated my first model I saw that I can't use the function name for my model. Here are my questions I couldn't answer by my searches: I tested some engines to see the behaviour of the app. I read a lot documentation including the "guides". The core app will manage the basic resources and the engines will add features (The app is managing membership for small organizations). The objective is to spend less time tweaking the app for the needs of the situation. I decide to use this upgrading version time to put some of my models in engines. I planned to install this app for few persons but they have different needs. The french thing was said by another player too, so it must be awful lol I know a little bit of it but I never played it in french so I don't know but they said they are working in that but they have like a million things that people are asking for so I don't know how long it will take to improve the translation.I'm currently upgrading an app to rails 4. You'll get new engines and caboose while you progress in the game and unlock new areas that give you specific engines and cabooses. When you enter into the trains thing you have like tabs within that tab, You usually see first the trains you got by using your gum machine, but at the sides there are two tabs (caboose at the left, and engines at the right if I recall correctly) But I prefer to clarify this and let the response anyway because it may be helpful for somebody else. I answered at first as if you asked where to find them and no how to get them. ![]() Edit: Sorry, The first sentence I wrote is because I read the question wrong (it's 4 AM here and I'm sleepy lol).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |