in my layout I wrote this line to load the js in sequence as stated by
lightbox2
<%= javascript_include_tag 'prototype', 'scriptaculous', 'lightbox',
'widgEditor', 'application', :cache => true %>
and the lightbox link is :
<a href="<%= big_image_link(@c, @p) %>" rel="lightbox"
title="agrandissement">
<%= image_tag( left_box_image(@c, @p), :size =>
@left_image_size, :border => 0, :id => 'imageLeft') -%>
</a>
with a helper to build the link according to the clicked image
big_image_link(c, p)
return "#{WWW_HOST}/images/#{params[:controller]}/big/
#{params[:controller][0,1]}" + c.to_s + "d" + p.to_s + '.jpg'
I am quite sure it's a js file loading problem.... not a Rail
problem,
but what could be the difference between being local dev and remote
production .... ???
I am quite sure it's a js file loading problem.... not a Rail
problem,
but what could be the difference between being local dev and remote
production .... ???
Because in production mode those files are cached and combined into
one, but not in dev mode