Re: Newbie - Rails 3 lightbox?

Anders_P
Fri, 15 Oct 2010 20:05:31 -0000

I''m getting this error from Firebug.

uncaught exception: Page Type could not be determined, please amend
this lightwindow URL
http://localhost:3000/system/images/301/original/tufftroja_19225958.jpg?1287075644

I use Paperclip for uploading images. LightWindow maybe doesn''t
recognize that file ending (tufftroja_19225958.jpg?1287075644)?

Any suggestion how to solve that?

Thanks
// Anders

On 15 Okt, 21:08, Walter Lee Davis
<wa...-HQgmohHLjDZWk0Htik3J/w@public.gmane.org>
wrote:
> 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
athttp://groups.google.com/group/rubyonrails-talk?hl=en
> > .

--
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.