Ruby on Rails Discussions
How to tell if you are in a controller module
rubyonrails-talk
Julio_Espinoza-Sokal
(Julio Espinoza-Sokal)
January 30, 2007, 2:50pm
1
Try controller.controller_path. It should give you ‘admin/products’.
Julio
Related topics
Topic
Replies
Views
Activity
How to tell if you are in a controller module
rubyonrails-talk
0
138
January 30, 2007
How to know the current Controller
rubyonrails-talk
0
125
July 30, 2007
detecting controller in application layout
rubyonrails-talk
0
117
October 27, 2007
Ruby On Rails Route Problem, with controller inside and outside module
rubyonrails-talk
0
126
March 13, 2013
Getting the Controller name from a layout
rubyonrails-talk
0
108
August 15, 2007