Sha256: 688324c5f2db511f5390e6d4a8b5d30563b43fcc46ef3064403e96dbf1d17b95
Contents?: true
Size: 294 Bytes
Versions: 15
Compression:
Stored size: 294 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
15 entries across 15 versions & 1 rubygems