Forum: Ruby on Rails how to render_component in global layout

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Marius Å. (Guest)
on 2006-03-14 14:19
i have one layout file for all controllers. I would like to have news
list on each page. So, i put <%= render_component :controller => "news",
:action => "list" %> , to my layout file. But this doesn't work at all.
I get error "Application could not be started.. ".
If I put render_component to some view file say
"views/static/index.rhtml", then it works.

How can it be ? Do I miss something? I'm newby to rails and ruby :), but
I like it much.

Please help :)
This topic is locked and can not be replied to.