Sha256: 0b6619d6f77dd1e2a3ec9eb84755794613a9d8e66007bb06161ed1b3366768f7
Contents?: true
Size: 1019 Bytes
Versions: 1
Compression:
Stored size: 1019 Bytes
Contents
=lightbox2_helpers This package contains helpers that allows the usage of http://www.huddletogether.com/projects/lightbox2/ directly on your rails projects. Version of lightbox2 used: v2.04 ==Usage Copy these two lines inside the head section of your layout file / view <%= javascript_include_tag :defaults %> <%= lightbox2_helpers_includes %> You can use link_to_lightbox2 from then on. Easy example: <% link_to_lightbox2 "See picture", @picture, :group => picture.gallery_id, :title => picture.title %> Example with a block <% link_to_lightbox2 @picture.path, :group => gallery.name, :title => picture.caption do %> <%=image_tag @picture.thumbnail_path %> <% end %> ==Installation ===As a gem Copy this on config/environment.erb, inside the gems section config.gem "splendeo-lightbox2_helpers", :lib => 'lightbox2_helpers', :source => "http://gems.github.com" Then execute rake gems:install ===As a plug-in I actually haven't tried this, sorry I don't know how to do it.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
splendeo-lightbox2_helpers-0.6.2 | README.rdoc |