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
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
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
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.
>