Re: Re: Newbie - Rails 3 lightbox?

Walter Lee Davis
Fri, 15 Oct 2010 19:08:24 -0000

Maybe move lightwindow after scriptaculous, since it depends on that
to work correctly. Do you have Firebug installed there? Are you
getting any errors?

Walter

On Oct 15, 2010, at 1:47 PM, Anders_P wrote:

> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> .
> For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
> .