From: Qas Wm Date: 2011-08-26T19:27:02+09:00 Subject: Re: How the access the values of this result 7stud -- wrote in post #1018604: > Here's the relevant line: > > class Address > [:firm_name, :address1, :address2, :city, :state, :zip5, :zip4].each > do |a| > attr_accessor a > > > > ...so as mentioned earlier, you can write: > > result.address2 The line that was creating trouble was .standardize.inspect and doing result.address2 was not working. Have removed .inspect and now it works just fine. Thanks for everyone help. -- Posted via http://www.ruby-forum.com/.