Displaying 1 result from an estimated 1 matches for "column_for_file_name".
2006 May 19
1
FileColumn
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...