Sha256: d94ecbf0f1badca95941edb0e8426d5d9aa7806767dd627456797285d1cbee0b
Contents?: true
Size: 295 Bytes
Versions: 84
Compression:
Stored size: 295 Bytes
Contents
module Phcmembers module ApplicationHelper # Add Active to Menu def is_active_controller(controller_name) params[:controller] == controller_name ? "active open selected" : nil end def is_active_action(action_name) params[:action] == action_name ? "active" : nil end end end
Version data entries
84 entries across 84 versions & 1 rubygems