Hi, please help me.... <% puts "Total #{@totalemail.inspect}" %> My Output is: Total [{:email=>"aa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org", :name=>"aa"}, {:email=>"bb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org", :name=>"bb"}] How to get email and name??? Thankyou. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
@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 <rails-mailing-list@andreas-s.net> wrote:> > 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. > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---