Forum: Ruby on Rails problem with controller.controller_name in production

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
fmh (Guest)
on 2009-02-21 13:54
(Received via mailing list)
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.
fmh (Guest)
on 2009-02-21 17:03
(Received via mailing list)
solution

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

just replace controller.controller_name by params[:controller]  for
action_name params[:action]
This topic is locked and can not be replied to.