File_column url_for_file returns nil


#1

Hi Guys,

I have been struggling with this one for a while…

file_column 0.3.1

My file gets uploaded and thumbnailed correctly,
however <%= url_for_file_column(“item”, “image”) %> returns nil…

I have tracked the problem to line 60 in file_column_helper.rb but I
cant figure out why my model would return nil in this case…


#2

mikkel wrote:

My file gets uploaded and thumbnailed correctly,
however <%= url_for_file_column(“item”, “image”) %> returns nil…

Do you have a string(255) column named ‘image’ in your item table? I had
trouble with this too.


#3

I cant really remember (I skipped file column and did my self…)

Would I need this column??

Mikkel


#4

On 2/1/06, Mikkel B. removed_email_address@domain.invalid wrote:

I cant really remember (I skipped file column and did my self…)

Would I need this column??

yes, the file’s name is stored in this column.

Sebastian