controller_name

controller.controller_name

That is a useful bit of Rails code for when you need to know what controller is being used in a view.

 

Trackbacks

(Trackback URL)

close Reblog this comment
blog comments powered by Disqus