Categories: None [Edit]

add_active_to_link

https://rubygems.org/gems/add_active_to_link
https://github.com/dschmura/add_active_to_link
jQuery snippet for Rails projects that parses the url for the current page, and adds an 'active' class decoration to links that match the current page. By default this snippet is designed to work with Twitter Bootstrap v4 header navigation. However, you can target different elements in your page(s) by modifying the active_element variable. In the default it is targetting links within a line item within a header element with a class of navbar-nav.

Total

Ranking: 121,657 of 198,575
Downloads: 6,138

Daily

Ranking: 83,483 of 198,547
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,953,620,340bundler
81,465,647,176rake

Owners

#GravatarHandle
1icondschmura