Forum: Ruby on Rails url_for_file_column and image_tag not working right together

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Josh K. (Guest)
on 2006-05-30 22:40
i just got file_column working and i love it. but i'm having some
problems with the urls. my application is not in the base directory, it
is in a folder called "/testapp". when i use "image_tag" with
"url_for_file_column", i get this path:

/testapp/testapp/entry/image/3/myimage.jpg

the image is located at:

/testapp/entry/image/3/myimage.jpg

to see if it was my file_upload making the wrong urls, i tried something
like:

<%= link_to 'Image', url_for_file_column...

the links work perfectly fine. has anyone has the same problems?
This topic is locked and can not be replied to.