File_column url_for_file returns nil

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…

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.

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

Would I need this column??

Mikkel

On 2/1/06, Mikkel B. [email protected] 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

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