Problem with controller.controller_name in production


#1

hello,

in production the <%= controller.controller_name %> has no effect in
view
I use passenger mod_rails.

if i restart my apache server , it work but just for 1 or 2 times and
after stop to work.
I must each time to restart my apache server.


#2

solution

http://railsforum.com/viewtopic.php?id=27357

just replace controller.controller_name by params[:controller] for
action_name params[:action]