module ApplicationHelper def page_link(person) return if person.phone.blank? 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