README.md in shadowbox-rails-0.0.3 vs README.md in shadowbox-rails-0.0.4
- old
+ new
@@ -29,13 +29,23 @@
@import 'shadowbox';
## Usage
Add rel='shadowbox' to links where the href is your full size image like this:
+
link_to 'Test me!', asset_path('path_to_my_img.jpg'), rel: 'shadowbox'
Go to http://www.shadowbox-js.com/ for more details.
+
+## Configure
+ Add Shadowbox.init(); in \<head\> tag
+
+ <script type="text/javascript">
+ Shadowbox.init();
+ </script>
+
+ Go to http://www.shadowbox-js.com/usage.html for a complete list of all options.
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)