stevo / colorbox-rails

Make links open in lightbox a breeze
MIT License
77 stars 58 forks source link

fix images in both development and production environments #5

Closed eostrom closed 12 years ago

eostrom commented 12 years ago

Depending on whether colorbox-rails/colorbox-rails.css is compiled into application.css or loaded independently, relative image URLs will point to different directories. asset_path figures out the right absolute path to the image, but needs ERb (or Sass) to do it.

See https://github.com/stevo/colorbox-rails/issues/4