At: http://www.tutorialspoint.com/ruby-on-rails/rails-file-uploading.htm
And, regarding:
name = upload['datafile'].original_filename
It mentions that "upload" is a CGI object.
If you look at the header of the function this line is part of:
def self.save(upload)
It seems that there is an argument "upload".
But, in the body, when we say:
upload['datafile']
Is "upload" here the same as the passed argument?
And, what about ['datafile'], what does it represent here? And, from
where is it passed?
Thanks.
--
Posted via http://www.ruby-forum.com/.