Ruby on Rails Discussions
How to know the current Controller
rubyonrails-talk
Javier_Godinez
(Javier Godinez)
July 30, 2007, 4:09pm
1
<%= controller.controller_name %>
Related topics
Topic
Replies
Views
Activity
Return the file name of the current controller?
rubyonrails-talk
0
138
October 11, 2006
detecting controller in application layout
rubyonrails-talk
0
120
October 27, 2007
Can i know the name of my current controller in my views?
rubyonrails-talk
1
141
June 13, 2007
Getting the Controller name from a layout
rubyonrails-talk
0
110
August 15, 2007
Find out the name of the currently :action
rubyonrails-talk
0
136
October 15, 2006