I''m using Windows and Postgres 8. I installed RMagic gem thingy and FileColumn plugin ok. I followed instructions exactly as directed on FileColumn web site which is very straight forward: ---model class My_model < ActiveRecord::Base file_column :column_for_file_name end -----view -upload form--set to mulitpart <%= file_column_field "my_model", "column_for_file_name" %> ---controller upload @my_model = My_model.new() @my_model.save(params[:my_model]) end I get a new record inserted into the database but without the filename value and no file is uploaded, althought the directory structure is created. I dont get any error message at all. Can suggest someway to troubleshoot this problem as i don''t want to delve into plugin code. Help much appreciated. Si. -- Posted via ruby-forum.com.
My suggestion is to just write your file upload code yourself. It is pretty straightforward. I wrote mine in my models. Just my opinion. I tried filecolumn but just annoying to use especially with the requirement that when you link to a file in your view, you need the actual object present rather than just having the filename. saureen On 5/18/06, Simon <simon@vouchme.com> wrote:> > > I''m using Windows and Postgres 8. > I installed RMagic gem thingy and FileColumn plugin ok. > > I followed instructions exactly as directed on FileColumn web site which > is very straight forward: > > ---model > class My_model < ActiveRecord::Base > file_column :column_for_file_name > end > > -----view -upload form--set to mulitpart > <%= file_column_field "my_model", "column_for_file_name" %> > > > ---controller > > upload > @my_model = My_model.new() > @my_model.save(params[:my_model]) > end > > I get a new record inserted into the database but without the filename > value and no file is uploaded, althought the directory structure is > created. I dont get any error message at all. Can suggest someway to > troubleshoot this problem as i don''t want to delve into plugin code. > Help much appreciated. Si. > > -- > Posted via ruby-forum.com. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: wrath.rubyonrails.org/pipermail/rails/attachments/20060519/39b0d273/attachment-0001.html