Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

LybSidebar simplifies dries up common sidebar code.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 lyb_sidebar.gemspec
README.rdoc

LybSidebar

LybSidebar dries up common sidebar code.

Install

In Rails 3, simply add

gem 'lyb_sidebar'

to your Gemfile.

Example

class StatementController < ActionController::Base
  sidebar
end

This will queue the partial 'statements/sidebar' to be rendered whenever
the 'prepare_sidebars' helper is called. The 'render_sidebars' will then
insert those queued sidebars.

License

Copyright © 2011 Simon Hürlimann <simon.huerlimann@cyt.ch>

Released under the MIT license.

Something went wrong with that request. Please try again.