Displaying 1 result from an estimated 1 matches for "widgets_layout".
2007 Jul 01
0
rake: uninitialized const ActionController::TestUploadedFile
...ot;
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[:f], i[:content_type])
conf.conference_files.create(:uploaded_data => file)
end
end[/code]
But I get the rake error
uninitialized constant ActionController::TestUploadedFile
If I start the console, ActionController::TestUploadedFile.new works
fine.
*Thank you* for any ideas,...