Hi All -
I just installed file_column and am trying to make the simplest example
work. I have one file upload control and I’m getting the following
puzzling error.
It’s complaining about a missing file or directory, but the first
directory in the error exists. The second one doesn’t because it’s not
supposed to, I’m renaming the first directory to the second one. The
model containing the image column is property, and the column is called
image. Has anybody seen this? Thanks for any help!
I’m running ruby 1.8.6 and rails 2.0.2.
Errno::ENOENT (No such file or directory -
/home/sline/deployed/happycanyon/releases/20080503044201/public/property/image/tmp/1209794023.471088.30819
or
/home/sline/deployed/happycanyon/releases/20080503044201/public/property/image/production/1):
/usr/local/lib/ruby/1.8/fileutils.rb:505:in rename' /usr/local/lib/ruby/1.8/fileutils.rb:505:in
mv’
/usr/local/lib/ruby/1.8/fileutils.rb:1395:in fu_each_src_dest' /usr/local/lib/ruby/1.8/fileutils.rb:1411:in
fu_each_src_dest0’
/usr/local/lib/ruby/1.8/fileutils.rb:1393:in fu_each_src_dest' /usr/local/lib/ruby/1.8/fileutils.rb:494:in
mv’
/vendor/plugins/rails_file_column/plugins/file_column/trunk/lib/file_column.rb:364:in
move_from' /vendor/plugins/rails_file_column/plugins/file_column/trunk/lib/file_column.rb:310:in
after_save’
/vendor/plugins/rails_file_column/plugins/file_column/trunk/lib/file_column.rb:676:in
image_after_save' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/callbacks.rb:307:in
send’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/callbacks.rb:307:in
callback' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/callbacks.rb:304:in
each’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/callbacks.rb:304:in
callback' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/callbacks.rb:214:in
create_or_update’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:1972:in
save_without_validation' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/validations.rb:934:in
save_without_transactions’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/transactions.rb:108:in
save' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in
transaction’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/transactions.rb:80:in
transaction' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/transactions.rb:100:in
transaction’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/transactions.rb:108:in
save' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/transactions.rb:120:in
rollback_active_record_state!’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/transactions.rb:108:in
save' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:2034:in
update_attributes’
/app/controllers/property_controller.rb:41:in update' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in
send’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in
perform_action_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:697:in
call_filters’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in
`perform_action_without_benchmark’