Google for the file_column plugin. It handles many of the minutae like
figuring out where in the filesystem to store the files, handling the
form field gracefully when it comes to updating the database record that
references it, etc., all through a one-line declaration in the model and
a string (varchar) field for the filename. And if they’re image files,
it’s got hooks into RMagick, ImageMagick, etc. for creating and caching
resized and otherwise processed versions of the image.
Not perfect but applicable to most situations and a whole lot easier
than reinventing the wheel.
Jeff C.man wrote:
Where should I look for information on how to use Rails and Ruby to
accept the upload of a file and then to save that file to the file
system of my server?
I’m reading the “Uploading a file” section of Agile Web Dev with Rails,
but it’s geared toward saving the file in the database.