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... -- Posted via http://www.ruby-forum.com/.
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. -- Posted via http://www.ruby-forum.com/.
I cant really remember (I skipped file column and did my self....) Would I need this column?? Mikkel On 1/5/06, Ben Hiller <benhiller@gmail.com> wrote:> > 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. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060201/bc156091/attachment.html
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