I have this method in application_helper
def is_controller?(*args)
"active" if args.include?(params[:controller])
end
This works.
%= is_controller?("x") %>
This is not working.
%= is_controller?("x", "y", "z", "t") %>
Any help will be appreciated.
In the console it behaves as you expect
so the problem would seem to be that your params[:controller] value is not what you think it should be …