search for: location_display

Displaying 1 result from an estimated 1 matches for "location_display".

2006 May 24
0
Mongrel errors on file upload
...------ create_controller.rb -------------- class CreateController < ApplicationController def index end def read_in if params[:file_to_upload].instance_of?(Tempfile) FileUtils.copy(params[:file_to_upload].local_path, "#{RAILS_ROOT}/public/sandbox1.xml") @location_display = "Copied the Tempfile to sandbox1.xml" else File.open("#{RAILS_ROOT}/public/sandbox2.xml","w"){|f| f.write(params[:file_to_upload].read) f.close} @location_display = "Saved the IOString to sandbox2.xml" end end end --...