LybSidebar simplifies dries up common sidebar code.
Ruby JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib Update gemspec and use gem-release compatible version setting. Jan 23, 2012
spec Spec sharing and inheriting of sidebars. Jan 10, 2011
.gitignore Add .gem to .gitignore. Jan 10, 2011
Gemfile Update specs. Jan 23, 2012
Gemfile.lock Update specs. Jan 23, 2012
MIT-LICENSE Initialized using enginex. Jan 10, 2011
README.rdoc Small text fixes in README. Feb 22, 2011
Rakefile Initialized using enginex. Jan 10, 2011
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.