Can you submit this as a ticket? I need to add some tests to ensure that components are being rendered from Engines properly.
- james On 4/7/06, Nuno <[EMAIL PROTECTED]> wrote: > Thanks James, valuable answer as allways ;-) > > And then comes the next (and last I hope) problem : > > mysite/app/controllers/site_controller with action index > -> which render the view mysite/app/views/index.rhtml > --> which contains <%= render_component :controller => > ArticlesController, :action => "newarticles" %> > ---> which calls controller (uses_component_template_root) > MYENGINE_ROOT/app/controllers/articles_controller with action > newarticles > ----> which render MYENGINE_ROOT/app/controllers/newarticles.rhtml !!! > <-- GOTCHA HERE ### > > Why does it tries to find the view in this directory instead of views > directory ? > > I had to use > render "../views/newsarticles" > > Any idea ? Am I doing something wrong ? > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > engine-users mailing list > engine-users@lists.rails-engines.org > http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org > -- * J * ~ _______________________________________________ engine-users mailing list engine-users@lists.rails-engines.org http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org