huerlisi / lyb_sidebar

LybSidebar simplifies dries up common sidebar code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

LybSidebar simplifies dries up common sidebar code.

License:MIT License


Languages

Language:Ruby 74.0%Language:JavaScript 26.0%