How to render_component in global layout

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 :slight_smile:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs