File_column

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:

Dsc_1146_small

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!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs