RubyGems Navigation menu

dynamic-body-class-and-id 1.0.0

The gem adds body_class and body_id helpers to your Rails app. The ID is based on the name of the controller and the class is based on the name of the action. Use this in your CSS to provide page-specific styles. For example, when accessing http://example.com/post/123, the body ID would be "post" and the class would be "show".

Versions:

  1. 1.0.0 - October 10, 2010 (3.5 KB)

Runtime Dependencies:

Authors:

  • Patrick Byrne

Owners:

7f6ca3dae23b904c081db4ff86fab8ca

Total downloads 1,823

For this version 1,823

Required Ruby Version: None

Licenses:

N/A

Gemfile:
gem 'dynamic-body-class-and-id', '~> 1.0.0' = Copy to clipboard Copied!

install:
gem install dynamic-body-class-and-id = Copy to clipboard Copied!

Links: