Kevin,
If you use:

image_tag 'image-name.jpg'

It will take care of paths for you. The argument is relative to the
images directory.

Kev

On 2/21/07, Kevin Burk <[EMAIL PROTECTED]> wrote:
I'm having some difficulty with specifying image paths in my
application. I have a general layout template for my model that has
relative reference urls to the images (../images/IMAGE-NAME.jpg).
This works for the index view, but when I invoke the show view (which
lives in the same folder as the index view, and should have the same
relative path for the images), the image urls are broken....the show
view, when invoked from the index view wants the path of
"../../images/IMAGE-NAME.jpg" to display the images in the template
correctly.

This doesn't seem to make sense to me. The model folders are all the
same distance from the public/images folder. It shouldn't matter
which view I invoke, right?

How do I correct this?

Thanks,

Kevin Burk
--
***************************************
BURK DESIGN GROUP
http://www.BurkDesignGroup.com
mailto:[EMAIL PROTECTED]
6161 El Cajon Blvd #306
San Diego, CA 92115
PHONE (619) 583-2311
FAX (619) 583-5801
***************************************
_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby



--
Kevin Clark
http://glu.ttono.us
_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby

Reply via email to