Forum: Ruby on Rails How to get hash values????

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
60bb25c88eda9e783e1d22653e26f86d?d=identicon&s=25 Smarty 2k (smartee)
on 2008-11-12 13:04
Hi,
please help me....

<% puts "Total #{@totalemail.inspect}" %>

My Output is: Total [{:email=>"aa@gmail.com", :name=>"aa"},
{:email=>"bb@gmail.com", :name=>"bb"}]

How to get email and name???

Thankyou.
F0f0a1f3ffb784d0b3b00941f846e7e0?d=identicon&s=25 Rui Neto (ruivaldo)
on 2008-11-12 13:07
(Received via mailing list)
@totalemail[0][:email]  does the trick ?

Cheers.

[ rui ]
[ Seiri, Seiton, Seisō, Seiketsu e Shitsuke ]



On Wed, Nov 12, 2008 at 9:04 AM, Smarty 2k
60bb25c88eda9e783e1d22653e26f86d?d=identicon&s=25 Smarty 2k (smartee)
on 2008-11-12 13:52
Solved... Thank you Very much


Rui Neto wrote:
> @totalemail[0][:email]  does the trick ?
>
> Cheers.
>
> [ rui ]
> [ Seiri, Seiton, Seisō, Seiketsu e Shitsuke ]
>
>
>
> On Wed, Nov 12, 2008 at 9:04 AM, Smarty 2k
This topic is locked and can not be replied to.