From: Joel VanderWerf Date: 2006-05-25T07:37:01+09:00 Subject: Re: Getting values from @params["variable"] with a string Chris wrote: ... > I want to loop through a bunch of column names and store a value from a > text field of the same name > > for column in Particular.content_columns > @particular.'column.name'= params[:'column.name'] @particular.send("#{column.name}=", params[column.name.to_sym]) > end You may want to cache the "#{column.name}=" strings somewhere so it isn't constructed on each iteration. You could look it up in a hash that maps column.name to the appropriate string or symbol. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407