Hi Everyone
I''ve been trying the file_column plug-in and have some basic examples
working.  However when I repeat the install on a laptop (Win XP) I get
the following error when attempting to upload:
Errno::ENOENT in AdminController#create
No such file or directory -
c:/temp/1169548422.983000.3156/Flowers004.JPG or
c:/temp/1169548422.983000.3156/Flowers004.jpg
RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace
c:/InstantRails/ruby/lib/ruby/1.8/fileutils.rb:501:in `rename''
c:/InstantRails/ruby/lib/ruby/1.8/fileutils.rb:501:in `mv''
c:/InstantRails/ruby/lib/ruby/1.8/fileutils.rb:1379:in
`fu_each_src_dest''
c:/InstantRails/ruby/lib/ruby/1.8/fileutils.rb:1395:in
`fu_each_src_dest0''
c:/InstantRails/ruby/lib/ruby/1.8/fileutils.rb:1377:in
`fu_each_src_dest''
c:/InstantRails/ruby/lib/ruby/1.8/fileutils.rb:490:in `mv''
#{RAILS_ROOT}/vendor/plugins/file-column-0.3.1/lib/file_column.rb:210:in
`store_upload''
#{RAILS_ROOT}/vendor/plugins/file-column-0.3.1/lib/file_column.rb:118:in
`upload''
#{RAILS_ROOT}/vendor/plugins/file-column-0.3.1/lib/file_column.rb:54:in
`assign''
#{RAILS_ROOT}/vendor/plugins/file-column-0.3.1/lib/file_column.rb:584:in
`file=''
c:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1510:in
`send''
c:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1510:in
`attributes=''
The file is created in the directory referred to by the Windows TEMP
Environment Variable but for some reason it can''t be copied to the
file_column tmp directory!
Has anyone else seen this issue or have a solution?
Thanks
Steve
-- 
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
augustlilleaas-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Jan-23  12:34 UTC
Re: file_column error
Don''t use file column, use Rick Olsons acts_as_attachment. Much more used, and therefore much better tested, and it''s just better in the first place imo. http://svn.techno-weenie.net/projects/plugins/acts_as_attachment/ On Jan 23, 11:43 am, Steve <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi Everyone > > I''ve been trying the file_column plug-in and have some basic examples > working. However when I repeat the install on a laptop (Win XP) I get > the following error when attempting to upload: > > Errno::ENOENT in AdminController#create > No such file or directory - > c:/temp/1169548422.983000.3156/Flowers004.JPG or > c:/temp/1169548422.983000.3156/Flowers004.jpg > RAILS_ROOT: ./script/../config/.. > > Application Trace | Framework Trace | Full Trace > c:/InstantRails/ruby/lib/ruby/1.8/fileutils.rb:501:in `rename'' > c:/InstantRails/ruby/lib/ruby/1.8/fileutils.rb:501:in `mv'' > c:/InstantRails/ruby/lib/ruby/1.8/fileutils.rb:1379:in > `fu_each_src_dest'' > c:/InstantRails/ruby/lib/ruby/1.8/fileutils.rb:1395:in > `fu_each_src_dest0'' > c:/InstantRails/ruby/lib/ruby/1.8/fileutils.rb:1377:in > `fu_each_src_dest'' > c:/InstantRails/ruby/lib/ruby/1.8/fileutils.rb:490:in `mv'' > #{RAILS_ROOT}/vendor/plugins/file-column-0.3.1/lib/file_column.rb:210:in > `store_upload'' > #{RAILS_ROOT}/vendor/plugins/file-column-0.3.1/lib/file_column.rb:118:in > `upload'' > #{RAILS_ROOT}/vendor/plugins/file-column-0.3.1/lib/file_column.rb:54:in > `assign'' > #{RAILS_ROOT}/vendor/plugins/file-column-0.3.1/lib/file_column.rb:584:in > `file='' > c:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1510:in > `send'' > c:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1510:in > `attributes='' > > The file is created in the directory referred to by the Windows TEMP > Environment Variable but for some reason it can''t be copied to the > file_column tmp directory! > > Has anyone else seen this issue or have a solution? > > Thanks > > Steve > > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Has anyone had any experience of migrating to acts_as_attachment from file_column with an existing project? I have hundreds of images all neatly resized into various folders and would need to keep them all where they are. I''m not averse to rewriting a little code, just not my entire application! thanks dorian On Jan 23, 1:34 pm, "augustlille...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <augustlille...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Don''t use file column, use Rick Olsons acts_as_attachment. Much more > used, and therefore much better tested, and it''s just better in the > first place imo. > > http://svn.techno-weenie.net/projects/plugins/acts_as_attachment/ > > On Jan 23, 11:43 am, Steve <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > Hi Everyone > > > I''ve been trying thefile_columnplug-in and have some basic examples > > working. However when I repeat the install on a laptop (Win XP) I get > > the following error when attempting to upload: > > > Errno::ENOENT in AdminController#create > > No such file or directory - > > c:/temp/1169548422.983000.3156/Flowers004.JPG or > > c:/temp/1169548422.983000.3156/Flowers004.jpg > > RAILS_ROOT: ./script/../config/.. > > > Application Trace | Framework Trace | Full Trace > > c:/InstantRails/ruby/lib/ruby/1.8/fileutils.rb:501:in `rename'' > > c:/InstantRails/ruby/lib/ruby/1.8/fileutils.rb:501:in `mv'' > > c:/InstantRails/ruby/lib/ruby/1.8/fileutils.rb:1379:in > > `fu_each_src_dest'' > > c:/InstantRails/ruby/lib/ruby/1.8/fileutils.rb:1395:in > > `fu_each_src_dest0'' > > c:/InstantRails/ruby/lib/ruby/1.8/fileutils.rb:1377:in > > `fu_each_src_dest'' > > c:/InstantRails/ruby/lib/ruby/1.8/fileutils.rb:490:in `mv'' > > #{RAILS_ROOT}/vendor/plugins/file-column-0.3.1/lib/file_column.rb:210:in > > `store_upload'' > > #{RAILS_ROOT}/vendor/plugins/file-column-0.3.1/lib/file_column.rb:118:in > > `upload'' > > #{RAILS_ROOT}/vendor/plugins/file-column-0.3.1/lib/file_column.rb:54:in > > `assign'' > > #{RAILS_ROOT}/vendor/plugins/file-column-0.3.1/lib/file_column.rb:584:in > > `file='' > > c:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1510:in > > `send'' > > c:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1510:in > > `attributes='' > > > The file is created in the directory referred to by the Windows TEMP > > Environment Variable but for some reason it can''t be copied to the > >file_columntmp directory! > > > Has anyone else seen this issue or have a solution? > > > Thanks > > > Steve > > > -- > > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---