[Rails] file_column

Bacon
Thu, 13 Jul 2006 02:47:24 -0000

Hello all, another rails newbie here.
I''m working on an project to simply upload pictures with some extra
information, I was able to get uploads working thanks to file_column,
however, a couple things are troubling me. First of all, according to
the file_column website, displaying images should go like this:

<%= image_tag url_for_file_column("entry", "image") %>

However, instead of the image, the alt tag is shown, when looking at the
source, a "?" shows up behind the url that shouldn''t be
there:

<img alt="Dsc_1146_small"
src="/picture/image/development/41/DSC_1146_small.jpg?">

Any idea why it''s doing that?

My second question.. how do I extract the filename (+extension) from the url
after uploading it with file_column?
I saw a couple methods before, but I imagine there''s a faster and
cleaner way using file_column since it''s made for it.

Thanks in advance for any tips!


-------------- next part --------------
An HTML attachment was scrubbed...