diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 06e1d062..7ed4364f 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -20,7 +20,7 @@ def set_copyright end def get_controller(url) - Rails.application.routes.recognize_path(url)[:controller] + Rails.application.routes.recognize_path(url.to_s)[:controller] end def active?(controller, url, klass) diff --git a/app/views/shared/_application_nav.html.erb b/app/views/shared/_application_nav.html.erb index a838cfda..ce041903 100644 --- a/app/views/shared/_application_nav.html.erb +++ b/app/views/shared/_application_nav.html.erb @@ -9,7 +9,7 @@