rubylight 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +6 -6
- data/lib/rubylight/version.rb +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -7,23 +7,23 @@ Its purpose is to simply make setup and use of Lightbox 2 easier for Rails users
|
|
7
7
|
|
8
8
|
Add Ruby to your gem file:
|
9
9
|
|
10
|
-
|
10
|
+
<tt> gem RubyLight </tt>
|
11
11
|
|
12
12
|
and install it using bundler:
|
13
13
|
|
14
|
-
|
14
|
+
<tt> $ bundle install </tt>
|
15
15
|
|
16
16
|
Require the modified Lightbox css file in your application.css file:
|
17
17
|
|
18
|
-
|
18
|
+
<tt> *= require lightbox </tt>
|
19
19
|
|
20
20
|
Require the modified Lightbox javascript file in your application.js file:
|
21
21
|
|
22
|
-
|
22
|
+
<tt> //= require lightbox </tt>
|
23
23
|
|
24
24
|
= Use
|
25
25
|
|
26
|
-
|
26
|
+
<tt> lightbox_tag thumb, pic, title=nil, collection=nil, html_options = {} </tt>
|
27
27
|
|
28
28
|
thumb is the url of the smaller pic (the one you want displayed on the page)
|
29
29
|
pic is the url of the larger pic (the one you want displayed after clicking)
|
@@ -33,7 +33,7 @@ html_options is any further html options for the link
|
|
33
33
|
|
34
34
|
= Author
|
35
35
|
|
36
|
-
|
36
|
+
{J Paul Wetstein}[https://rubygems.org/profiles/60085] (mailto:jeep.wetstein@gmail.com)
|
37
37
|
|
38
38
|
= License
|
39
39
|
|
data/lib/rubylight/version.rb
CHANGED