Sha256: adbb2a2a89fc1fb85fc0f777da34674cfd8590cf2c9caaa6e46235eee92dd757

Contents?: true

Size: 251 Bytes

Versions: 14

Compression:

Stored size: 251 Bytes

Contents

module BodyClassHelper
  # TODO: move this into a gem/plugin
  def body_class
    qualified_controller_name = controller.controller_path.gsub('/','-')
    "#{qualified_controller_name} #{qualified_controller_name}-#{controller.action_name}"
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
suspenders-0.2.6 template/files/body_class_helper.rb
suspenders-0.2.5 template/files/body_class_helper.rb
suspenders-0.2.4 template/files/body_class_helper.rb
suspenders-0.2.3 template/files/body_class_helper.rb
suspenders-0.2.2 template/files/body_class_helper.rb
suspenders-0.2.1 template/files/body_class_helper.rb
suspenders-0.2.0 template/files/body_class_helper.rb
suspenders-0.1.0.beta.7 template/files/body_class_helper.rb
suspenders-0.1.0.beta.6 template/files/body_class_helper.rb
suspenders-0.1.0.beta.5 template/files/body_class_helper.rb
suspenders-0.1.0.beta.4 template/files/body_class_helper.rb
suspenders-0.1.0.beta.3 template/files/body_class_helper.rb
suspenders-0.1.0.beta.2 template/files/body_class_helper.rb
suspenders-0.1.0.beta.1 template/files/body_class_helper.rb