My guess would be is that you are passing it a Model and not a string. Try this:
render_component :controller => 'articles_controller', :view => 'newarticles' -Nb On 4/7/06 7:07 AM, "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 ? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Nathaniel S. H. Brown http://nshb.net ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _______________________________________________ engine-users mailing list [email protected] http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org
