On Fri, Feb 25, 2011 at 2:27 PM, rixter <[email protected]> wrote: > > *the controller code:* > def create > @upload = Upload.new(params[:upload][:upload_file]) > thefile = File.new(params[:upload][:upload_file]) > @upload.filename = base_part_of(thefile.original_filename) > @upload.assign_name(thisfilename) > @upload.call(parse_file(params[:upload_file])) >
The last line above is calling params[:upload_file] and not params[:upload][:upload_file]. params[:upload_file] doesn't exist according to your view layout. B. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

