When I try and upload files to my application I receive this error, does anyone understand what this means? I would greatly appreciate some help even understanding what this error message means. Thanks in advance. NoMethodError in Sellers#add_file undefined method `submit='' for #<Document:0x259a56c> app/controllers/sellers_controller.rb:120:in `new'' app/controllers/sellers_controller.rb:120:in `add_file'' /Users/olly/Sites/development/auctionhand/trunk/script/server:48 Controller code def add_file # If the form has been sent if request.post? params[''name''] = @params[''document''] [''tmp_file''].original_filename.gsub(/[^a-zA-Z0-9.]/, ''_'') params[''content''] = @params[''document''][''tmp_file''].read params[''size''] = @params[''document''][''tmp_file''].length ext_array = params[''name''].split(''.'') extention = ext_array.pop @doctype = Doctype.find(:first, :conditions => ["extention = ?", extention]) if @doctype params[''doctype_id''] = @doctype.id else params[''doctype_id''] = 1 end params[''seller_id''] = ''1'' @params[''document''].delete(''tmp_file'') @document = Document.new(params) end end _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails