when I enter the next line in code editor I received an Unexpected tASSOC error. As far as I understand this is because I’m using the => operator.
@inserts.push("'#{:userid=>userid}', '#{:name=>name}'")
What I want is that @inserts in the position [x] contains for example '001' , 'name'
I think that you are misusing symbols and hash notation. Try the line instead: