Displaying 1 result from an estimated 1 matches for "logfile_control".
2006 Jun 07
5
File is nil
...error when I try to upload a small file:
NoMethodError in LogfileController#create
You have a nil object when you didn''t expect it!
The error occured while evaluating nil.original_filename
#{RAILS_ROOT}/app/models/logfile.rb:9:in `file=''
#{RAILS_ROOT}/app/controllers/logfile_controller.rb:31:in `create''
Request
Parameters: {"logfile"=> {"fileName"=>#<StringIO:0x39c3fc0>},
"commit"=>"Create"}
This is the code in view:
<%= form_tag({:action => ''simple_save''},...