Ruby on Rails Discussions
detecting controller in application layout
rubyonrails-talk
Andrew_Vit
(Andrew Vit)
October 27, 2007, 7:21am
1
Also works:
<%= controller.controller_name %> <%= controller.action_name %>
--Andrew Vit
Related topics
Topic
Replies
Views
Activity
Getting the Controller name from a layout
rubyonrails-talk
0
110
August 15, 2007
How to know the current Controller
rubyonrails-talk
0
127
July 30, 2007
Accessing name of controller and action from layout
rubyonrails-talk
0
148
September 11, 2006
Find out the name of the currently :action
rubyonrails-talk
0
136
October 15, 2006
Return the file name of the current controller?
rubyonrails-talk
0
138
October 11, 2006