Ruby on Rails Discussions
How to tell if you are in a controller module
rubyonrails-talk
open_web20
(open web20)
January 30, 2007, 4:21pm
1
Or you can just to params[‘controller’] in your layout .rhtml page and it should give you “admin”
Related topics
Topic
Replies
Views
Activity
How to tell if you are in a controller module
rubyonrails-talk
0
121
January 30, 2007
detecting controller in application layout
rubyonrails-talk
0
117
October 27, 2007
Getting the Controller name from a layout
rubyonrails-talk
0
108
August 15, 2007
How to know the current Controller
rubyonrails-talk
0
125
July 30, 2007
How to read back what controller I am in?
rubyonrails-talk
3
137
March 28, 2007