Re: Newbie - Rails 3 lightbox?

Anders_P
Fri, 15 Oct 2010 17:49:27 -0000

Hi,

I think we were talking about different modal window plugins. But I''ve
changed to LightWindow now, it seems much better.

I''m now getting the same output as you from my source code,


  <a href="<%= ad.image.url(:original) %>"
class="lightwindow"><img
src="<%= ad.image.url(:thumb) %>" />


But the effect doesn''t work. So I think my setup is wrong.

I have moved lightwindow.js to my public Javascript folder, and I have
moved lightwindow.css to my public CSS folder. My application.html.erb
looks like this:

<%= render ''layouts/stylesheets'' %>
<%= stylesheet_link_tag ''lightwindow'' %>
<%= javascript_include_tag :defaults, ''lightwindow'',
''scriptaculous.js?
load=effects'' %>

Have i forgotten something or is it something else?

Thanks!

// Anders

On 15 Okt, 18:19, Walter Lee Davis
<wa...-HQgmohHLjDZWk0Htik3J/w@public.gmane.org>
wrote:
> It''s class="lightwindow" to get the effect to fire.
>
> Walter
>
> On Oct 15, 2010, at 11:58 AM, Anders_P wrote:
>
>
>
> >  class="lightbox">

--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.