Displaying 1 result from an estimated 1 matches for "upload_files_test".
2007 Jul 01
0
rake: uninitialized const ActionController::TestUploadedFile
Hi,
My app uses attachment_fu and I''d like to pre-load some data via a rake
task.
Thus:
[code]desc "Upload template files"
task :upload_files_test => :environment do |t|
conf = Conference.find(1)
[{:f => ''styles.css'', :type_code => ''css'', :content_type =>
''text/css''}].each do |i|
file =
ActionController::TestUploadedFile.new("db/migrate/widgets_layout/" +
i[:...