I haven’t found a complete big-picture walkthrough for the Rails startup process when I looked for one recently. There are some really useful resources about this but they are for Rails 1.2 and each of them only covers certain parts of the process. Thus, I’ve taken some notes while reading to the Rails code and compiled the following guide from them. http://www.artweb-design.de/2007/12/2/the-rails-startup-process-a-paragliders-perspective By now I guess I''ve gotten a little snow-blind ... any feedback, corrections or additions would be highly appreciated! Thanks! -- sven fuchs svenfuchs-dUK+l/LC/MTXf2hzA9GHkA@public.gmane.org artweb design http://www.artweb-design.de grünberger 65 + 49 (0) 30 - 47 98 69 96 (phone) d-10245 berlin + 49 (0) 171 - 35 20 38 4 (mobile) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Umm..just one question, why are you porting engines to rails 2.0 ? From what I understand, engines are no longer needed as the same goals can be achieved using plugins. On Dec 2, 2007 5:26 PM, Sven Fuchs <svenfuchs-dUK+l/LC/MTXf2hzA9GHkA@public.gmane.org> wrote:> > I haven''t found a complete big-picture walkthrough for the Rails > startup process when I looked for one recently. > > There are some really useful resources about this but they are for > Rails 1.2 and each of them only covers certain parts of the process. > Thus, I''ve taken some notes while reading to the Rails code and > compiled the following guide from them. > > http://www.artweb-design.de/2007/12/2/the-rails-startup-process-a-paragliders-perspective > > By now I guess I''ve gotten a little snow-blind ... any feedback, > corrections or additions would be highly appreciated! > > Thanks! > > -- > sven fuchs svenfuchs-dUK+l/LC/MTXf2hzA9GHkA@public.gmane.org > artweb design http://www.artweb-design.de > grünberger 65 + 49 (0) 30 - 47 98 69 96 (phone) > d-10245 berlin + 49 (0) 171 - 35 20 38 4 (mobile) > > > > > > >-- Cheers! - Pratik http://m.onkey.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Pratik! I''m probably not the one to expand on what Engines were in a Rails 1.2 world as I actually never used them back then. Yes, a good chunk of what''s in Engines for Rails 1.2 has gone into Rails 2.0 like the explicit load order and stuff like that. This can now be factored out of Engines. I''m not sure though how a default Rails plugin would register a route though, for example, or share migrations? I''m probably missing something and would really like to learn about that as I need this kind of functionality for a client. PS: I''ve changed that sentence to say "help porting" ... just to make sure nobody thinks I''ve started a fork or whatnot Am 03.12.2007 um 01:31 schrieb Pratik:> Umm..just one question, why are you porting engines to rails 2.0 ? > From what I understand, engines are no longer needed as the same goals > can be achieved using plugins. > > On Dec 2, 2007 5:26 PM, Sven Fuchs <svenfuchs-dUK+l/LC/MTXf2hzA9GHkA@public.gmane.org> wrote: >> >> I haven''t found a complete big-picture walkthrough for the Rails >> startup process when I looked for one recently. >> >> There are some really useful resources about this but they are for >> Rails 1.2 and each of them only covers certain parts of the process. >> Thus, I''ve taken some notes while reading to the Rails code and >> compiled the following guide from them. >> >> http://www.artweb-design.de/2007/12/2/the-rails-startup-process-a-paragliders-perspective >> >> By now I guess I''ve gotten a little snow-blind ... any feedback, >> corrections or additions would be highly appreciated! >> >> Thanks! >> >> -- >> sven fuchs svenfuchs-dUK+l/LC/MTXf2hzA9GHkA@public.gmane.org >> artweb design http://www.artweb-design.de >> grünberger 65 + 49 (0) 30 - 47 98 69 96 (phone) >> d-10245 berlin + 49 (0) 171 - 35 20 38 4 (mobile) >> >> >> >> >>> >> > > > > -- > Cheers! > - Pratik > http://m.onkey.org > > >-- sven fuchs svenfuchs-dUK+l/LC/MTXf2hzA9GHkA@public.gmane.org artweb design http://www.artweb-design.de grünberger 65 + 49 (0) 30 - 47 98 69 96 (phone) d-10245 berlin + 49 (0) 171 - 35 20 38 4 (mobile) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Dec 3, 12:31 am, Pratik <pratikn...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Umm..just one question, why are you porting engines to rails 2.0 ? > From what I understand, engines are no longer needed as the same goals > can be achieved using plugins.Quite a bit of what the engines plugin used to provide has now been adopted in the core framework, including partial plugin load orders and a richer plugin loading mechanism. However, the engines plugin still adds functionality that Rails plugins do not have by default, including (but not limited to): * adding routes * running migrations * sharing public assets * easily sharing controller code While certainly it''s possible to achieve this in a default Rails plugin, there are situations where it''s useful to have the functionality available in a standardised manner. Perhaps you are confusing the old notion of "an engine" with the engines plugin itself? (see http://rails-engines.org/news/2007/01/03/engines-are-dead-long-live-engines/). -- * J * ~ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Dec 3, 2007 11:15 AM, James Adam <james.adam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Perhaps you are > confusing the old notion of "an engine" with the engines plugin > itself? (see http://rails-engines.org/news/2007/01/03/engines-are-dead-long-live-engines/). > > -- > * J *Ah right. That makes sense. Please forgive my engine ignorance and thanks for the clarification ! Sven, the article is great nevertheless. -- Cheers! - Pratik http://m.onkey.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Am 03.12.2007 um 12:39 schrieb Pratik:> Sven, the article is great nevertheless.Thanks :) -- sven fuchs svenfuchs-dUK+l/LC/MTXf2hzA9GHkA@public.gmane.org artweb design http://www.artweb-design.de grünberger 65 + 49 (0) 30 - 47 98 69 96 (phone) d-10245 berlin + 49 (0) 171 - 35 20 38 4 (mobile) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---