From: Andrew Timberlake Date: 2009-08-13T21:02:12+09:00 Subject: Re: noob question on combining variables On Thu, Aug 13, 2009 at 1:56 PM, bingo bob wrote: > Sorry for such an uber noob question but I could do with a quick pointer > on this. > > How do I combine  file_ and another variable NOT like this clearly... > > count = 1 > file_"#{count}".save > count += 1 > file_"#{count}".save > count += 1 > file_"#{count}".save > > but how? > If you're wanting the text "file_1" etc then count = 1 "file_#{count}" but then you're calling save on "file_1" which is a string Andrew Timberlake http://ramblingsonrails.com http://MyMvelope.com - The SIMPLE way to manage your savings