[Rails] Re: Problem regarding accessing attributes from object...

Prashant Tiwari
Fri, 12 May 2006 08:35:53 -0000

Hi,
I tried with @cnt.cntnew bjt getting error as:-
==============undefined method `cntnew'' for [#<Tagging:0x359bbc8
@attributes={"cntnew"=>"3"}>]:Array
==============
Why I am getting this error n how 2 correct it?
Thanx,
Prash

Ryan Prins wrote:
> Now that you have @cnt, try @cnt.cntnew. Since that is what you are
> calling
> the attribue as you defined in your AS part of your SQL query.


--
Posted via http://www.ruby-forum.com/.