navigation active class

This commit is contained in:
2015-10-03 22:44:36 -05:00
parent 7afe8d137c
commit 1e3917ada0
7 changed files with 38 additions and 14 deletions

View File

@ -4,4 +4,12 @@ module ApplicationHelper
link_to 'page', page_person_path(person)
end
def active_controller(kontroller)
'active' if params[:controller] == kontroller
end
def active_action(action)
'active' if params[:action] == action
end
end