[Rails] Re: One model handling two different file types

lisa-u
Tue, 13 Jun 2006 22:56:32 -0000

Never mind.  My design worked (sort of).  I just needed to maintain my
variables with similar names. I''m a horrible at naming.

What happened was I uploaded either txt or zip through a web form,
handled each file accordingly (sorted by @uploaded_file.content_type)
and created a Logfile (or looped to create many logfiles, in the case of
the zipped file).

I''m still having a bit of trouble saving the file to the correct
location without any errors, but I''m sure I can handle that.