Forum: Ruby-dev can not convert array to string: problem of a newbie

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
D521111af37224f4659919c514de1902?d=identicon&s=25 Eric Milinda (eric_milinda)
on 2007-04-19 11:37
(Received via mailing list)
hi guys,

def fil_string
sql = ActiveRecord::Base.connection()
        filter_string=' '
  column_ids = sql.execute("SELECT columnid FROM output_columns")
     column_ids.each do |column_id|
         filter_string=filter_string +" columnid='"+column_id+"'"

 but in the solution
Error: can not convert array to string
at line  -- filter_string=filter_string +" columnid='"+column_id+"'"  "

Please take a hand in my code.
This topic is locked and can not be replied to.