Narayana,
I think Acts As Enumerated
http://agilewebdevelopment.com/plugins/acts_as_enumerated does what
you''re
trying to do.
Hammed
On 8/5/06, Narayana Karthik <narayana_karthik_2004@hotmail.com>
wrote:>
> hello
>
> I want to do like the below code
>
name=[''net'',''gross'',''amount'']
> avail= Avail.find(1)
> return avail.name[0]
> but it gets error
> I want to give " avail.name[0] " like this, rather than avail.net
> directly,
> can u guys plz help me, how to do this plz explain with code
>
> advance thx
> have a pleasant day
>
> narayana
>
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060805/69312b03/attachment.html