karlshea
Member Since: January 22, 2009
Member Since: January 22, 2009
karlshea has submitted 3 comments:
 |
|
Comment to: Multiple Attachments in Rails
Sorry about that, I forgot to trim out my extra code the second time I posted it.
January 26, 2009
|
|
Comment to: Multiple Attachments in Rails
Well, that didn't work...
def process_file_uploads
params[:attachment].each do |key, value|
if value and value != ''
@attachment = Attachment.new(Hash['uploaded_data' => value])
@attachment.title = @attachme...
January 22, 2009
|
|
Comment to: Multiple Attachments in Rails
There is a problem with the processfileuploads method... when removing a file during the new action, a gap is left in the hash that makes the while loop terminate early. Here's a version that fixes that:
def process_fil...
January 22, 2009
|