Forum: Ruby on Rails file_column url_for_file returns nil

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.
C7669e8b5676f61fdf202230cbcf72d8?d=identicon&s=25 mikkel (Guest)
on 2006-01-05 13:04
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...
5375ff5e7386305617e62e732354bff1?d=identicon&s=25 Ben Hiller (benhiller)
on 2006-01-05 17:20
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.
311849893e0a9c683419fd77e6c52e7e?d=identicon&s=25 Mikkel Bruun (Guest)
on 2006-02-01 13:56
(Received via mailing list)
I cant really remember (I skipped file column and did my self....)

Would I need this column??

Mikkel
B8ed55487e4f2f0feaeb68957dc07b21?d=identicon&s=25 Sebastian Kanthak (Guest)
on 2006-02-01 19:22
(Received via mailing list)
On 2/1/06, Mikkel Bruun <mikkel.lists@gmail.com> 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 topic is locked and can not be replied to.