Plugins - LightWindow_Helper
Add to favorites
LightWindowHelper v.1.0
====================
- Author:: Carlo Bertini (WaYdotNET)
- WebSite:: http://blogs.ugidotnet.org/carlitoway
- Based on LightBoxHelper
- Many thx to Davide D’Agostino (DAddYE)
This LightBox Helper is based on the lastest javascript http://www.stickmanlabs.com/lightwindow/
note: this js use Prototype JavaScript framework, version 1.6.0
It’s only make an helper, copy the lastest javascripts, css, and images on your public/javascript directory
and register the javascript in the AssetTagHelper of rails,
so for include the javascript in your page you only can add this (if you havn’t yet):
<%= javascript_include_tag :defaults %>
You must add also the stylesheet so add this on your page head:
<%= stylesheet_link_tag ‘lightwindow’ %>
The is very simple for add a LightWindow in your page add this:
<= lightwindow_link_to(name, options = {}, html_options = {}, *parameters_for_method_reference) %>
es:
<= lightwindow_link_to(
“Click me !”, {:action => ‘edit’, :id => “12/”}, :title => “This is a test!”,
:author=>”Carlo Bertini”,
:caption=>”Ruby on rails is beautyfull :D”
) %>
Vist my website: http://blogs.ugidotnet.org/carlitoway
http://rails.lipsiasoft.com/projects/show/lightwindow
http://svn.lipsiasoft.com/lightwindow
Rails' (MIT)
Assets

Why do you add a trailing slash to url_for? It's breaking links to assets.