Forum: Ruby on Rails how to render_component in global layout

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Marius Å. (Guest)
on 2006-03-14 14:19
Hello,
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.