Hi, How to have an output using eval for a unique values in a "name" calumn? Data; {:name=>"maria", :name=>"lorie", :name=>"maria", :name=>"smith", :name=>"maria"} {:name=>"maria", :name=>"den", :name=>"maria", :name=>"smith", :name=>"ole"} Output would be; maria lorie smith den ole Thanks in Advance! -- 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 -~----------~----~----~----~------~----~------~--~---
Hi, Could you please elaborate on your question, also if your data is a hash, how come you can have same keys repeated again? NAYAK On Sat, Jan 10, 2009 at 2:12 PM, Ferdie Ferdie < rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Hi, > > How to have an output using eval for a unique values in a "name" calumn? > > > Data; > {:name=>"maria", :name=>"lorie", :name=>"maria", :name=>"smith", > :name=>"maria"} > > {:name=>"maria", :name=>"den", :name=>"maria", :name=>"smith", > :name=>"ole"} > > > Output would be; > maria > lorie > smith > den > ole > > > Thanks in Advance! > -- > Posted via http://www.ruby-forum.com/. > > > >-- - NAYAK --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Vishwanath Nayak wrote:> Hi, > > Could you please elaborate on your question, also if your data is a > hash, > how come you can have same keys repeated again? > > NAYAK > > On Sat, Jan 10, 2009 at 2:12 PM, Ferdie Ferdie < > rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > >> {:name=>"maria", :name=>"den", :name=>"maria", :name=>"smith", >> >> Thanks in Advance! >> -- >> Posted via http://www.ruby-forum.com/. >> >> > >> > > > -- > - NAYAKHi Nayak, You already have an answer to my previous post. Thank you for the helps. Regards, Ferdie -- 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 -~----------~----~----~----~------~----~------~--~---