Firstname Secondname
2006-Mar-14 12:20 UTC
[Rails] how to render_component in global layout
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 :) -- Posted via http://www.ruby-forum.com/.