From: Sven Gehring Date: 2008-06-24T19:39:33+09:00 Subject: How to determine the current controller? Hi guys, I want to build a generic navigation menu with partials in the style of if current_controller == 'abcd' render pratial 'abscd' How can I determine the current controller from within the layout .rhtml file without taking care of what action is executed? If I use current_page?(:controller => 'abcd') it works as long as the current_page is http://localhost:3000/abcd -- Posted via http://www.ruby-forum.com/.