navigation active class
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user