From: misiek Date: 2006-03-01T10:57:47+09:00 Subject: Re: undefined method `read' for > > I'm guessing that whatever @params['image_file'] is doesn't have a read method. > If it's just a filename, for instance, you have to open it and call read > on the File object, e.g. > > File.open("#{RAILS_ROOT}/public/images/#{@user}.jpg", "wb") do > |f| > f.write(File.open(@params['image_file']).read) > end works better but still have error can't convert Array into String