search for: conference_fil

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

Did you mean: conference_files
2007 Jul 01
0
rake: uninitialized const ActionController::TestUploadedFile
...nf = 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, Larry -- Posted via http://www.ruby-forum.com/. --~--...