karlshea

Member Since: January 22, 2009

avatar Member Since: January 22, 2009

karlshea has submitted 3 comments:

RSS

Sorry about that, I forgot to trim out my extra code the second time I posted it.

January 26, 2009

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

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

Help

Featured Tags | All A-Z

Sign-up to receive EcommerceNotes, our acclaimed email newsletter.

View A Sample | Privacy

 

Inside Practical eCommerce