How to get hash values?


#1

Hi,
please help me…

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

My Output is: Total [{:email=>“removed_email_address@domain.invalid”, :name=>“aa”},
{:email=>“removed_email_address@domain.invalid”, :name=>“bb”}]

How to get email and name???

Thankyou.


#2

@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


#3

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