Forum: Ruby on Rails file_column issues

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Andrew F. (Guest)
on 2006-02-26 04:02
(Received via mailing list)
I am having some strange issues with file column today. This goes
back to something that I was working on before and successfully have
it working on my development box however it is not working on my
staging machine.

I have a dynamic_dir action set up for file_column that is called via
the :store_dir => :dynamic_dir

the action is this:

def dynamic_dir

This works perfect on my development machine however when I loaded
the code up to our staging machine (getting ready to go live with it)
I keep getting the following error:

ArgumentError (dynamic_dir' is not an instance method of class File):

like I said this works on my dev box but not on the staging machine.
The difference between the two boxes are that my dev box is a
PowerBook while the staging system is Fedora Core 4. The tmp files
are getting created however the main files are not. Any thoughts?

This topic is locked and can not be replied to.