RubyGems.org

Any link to the current page will have the class "current" (or whatever class name you designate). This allows for easy styling without having the logic encoded multiple places throughout your templates.

installgem install rack_current_page
Authors

Eric Anderson

2,057 total downloads 731 for this version
Owners

5866464ebc16b5c4729fff4fe7d8fbe7

Gemfile
gem 'rack_current_page', '~> 0.0.3'
Versions
  1. 0.0.3 December 17, 2012 (4.5 KB)
  2. 0.0.2 December 10, 2012 (4.5 KB)
  3. 0.0.1 December 10, 2012 (4.5 KB)
Runtime Dependencies
  1. rack >= 0
  2. rack_replace >= 0
Development Dependencies
  1. debugger >= 0
  2. rake >= 0