Registry / web-framework / phcmenus

phcmenus

JSON →
library5.4.1rbrubygemsunverified

Rails helpers to add active class to menu items based on controller and controller action.

gem install phcmenus
INSTALL
IMPORT
SIG · PHCMENUS
P
phcmenus
web-frameworkrubyv5.4.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PhcMenus
require 'phcmenus'

Adds an 'active' CSS class to menu links based on the current controller/action.

require 'phcmenus' # In a Rails view: # <%= active_link_to 'Home', root_path %>
Debug
Known issues

No known issues recorded.

Upgrade
Version history
5.4.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
phcmenus — gem install phcmenus · libregistry