From: "Mariko C." Date: 2008-03-04T16:50:49+09:00 Subject: Re: String to Object name? Joshua Ballanco wrote: > Meta-programming to the rescue! > > #!/usr/bin/env ruby > > a = "aString" > > eval(a + " = 5") > > puts aString Hi Joshua. I tried this through irb and it works fine, but it gives me an "undefined local variable" error through Ruby on Rails. Any idea how to get this to work? -- Posted via http://www.ruby-forum.com/.