splendeo-lightbox2_helpers 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +33 -0
- metadata +3 -3
- data/README +0 -15
data/README.rdoc
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
=lightbox2_helpers
|
4
|
+
|
5
|
+
This package contains helpers that allows the usage of http://www.huddletogether.com/projects/lightbox2/ directly on your rails projects.
|
6
|
+
|
7
|
+
Version of lightbox2 used: v2.04
|
8
|
+
|
9
|
+
==Usage
|
10
|
+
Copy these two lines inside the head section of your layout file / view
|
11
|
+
<%= javascript_include_tag :defaults %>
|
12
|
+
<%= lightbox2_helpers_includes %>
|
13
|
+
|
14
|
+
You can use link_to_lightbox2 from then on.
|
15
|
+
|
16
|
+
Easy example:
|
17
|
+
<% link_to_lightbox2 "See picture", @picture, :group => picture.gallery_id, :title => picture.title %>
|
18
|
+
|
19
|
+
Example with a block
|
20
|
+
<% link_to_lightbox2 @picture.path, :group => gallery.name, :title => picture.caption do %>
|
21
|
+
<%=image_tag @picture.thumbnail_path %>
|
22
|
+
<% end %>
|
23
|
+
|
24
|
+
==Installation
|
25
|
+
|
26
|
+
===As a gem
|
27
|
+
Copy this on config/environment.erb, inside the gems section
|
28
|
+
config.gem "splendeo-lightbox2_helpers", :lib => 'lightbox2_helpers', :source => "http://gems.github.com"
|
29
|
+
Then execute
|
30
|
+
rake gems:install
|
31
|
+
|
32
|
+
===As a plug-in
|
33
|
+
I actually haven't tried this, sorry I don't know how to do it.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: splendeo-lightbox2_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Enrique Garcia Cota (egarcia)
|
@@ -20,7 +20,7 @@ executables: []
|
|
20
20
|
extensions: []
|
21
21
|
|
22
22
|
extra_rdoc_files:
|
23
|
-
- README
|
23
|
+
- README.rdoc
|
24
24
|
files:
|
25
25
|
- init.rb
|
26
26
|
- lib/lightbox2_helpers.rb
|
@@ -37,7 +37,7 @@ files:
|
|
37
37
|
- public/javascripts/lightbox2_helpers/builder.js
|
38
38
|
- public/javascripts/lightbox2_helpers/lightbox.js
|
39
39
|
- public/stylesheets/lightbox2_helpers/lightbox.css
|
40
|
-
- README
|
40
|
+
- README.rdoc
|
41
41
|
has_rdoc: true
|
42
42
|
homepage: http://github.com/splendeo/lightbox2_helpers
|
43
43
|
licenses:
|
data/README
DELETED