Re: [Rails-core] Re: loading two similar Rails Engine in single app

2012-05-28 Thread Luís Ferreira
Hi, I'll answer you directly, since this is not something to be discussed in rails core. When writing engines, it is a good practice to namespace them http://edgeapi.rubyonrails.org/classes/Rails/Engine.html#label-Isolated+Engine And so you would have a CoreEngine::Article and a Microsite::Ar

[Rails-core] Re: loading two similar Rails Engine in single app

2012-05-28 Thread kingston.s
My model like this only... class Site < ActiveRecord::Base def view_path "#{SITES_ROOT}/#{self.template.name}/views" end def jeno self.short_name end end what can i do for this ..??? On May 28, 5:56 pm, Piotr Sarnacki wrote: > You should almost always namespace your mo

Re: [Rails-core] Re: loading two similar Rails Engine in single app

2012-05-28 Thread Piotr Sarnacki
You should almost always namespace your models in engine, no matter if you use isolate_namespace or not. Please read the engines guide to see what isolated_namespace changes: http://edgeguides.rubyonrails.org/engines.html On Mon, May 28, 2012 at 2:27 PM, kingston.s wrote: > Thanks for quick repl

[Rails-core] Re: loading two similar Rails Engine in single app

2012-05-28 Thread kingston.s
Thanks for quick reply... I have not used isolate_namespace concept... controller also not loaded like models... cau u plz tell me any other solution On May 28, 3:34 pm, Piotr Sarnacki wrote: > Short answer is: namespace your models, for example you should have > Blog::Post instead of Post. >