Forum: Ruby on Rails finding eval unique values in a name column

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.
Rake N. (Guest)
on 2009-01-10 10:42
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!
Vishwanath N. (Guest)
on 2009-01-10 14:52
(Received via mailing list)
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 <
removed_email_address@domain.invalid> wrote:

>  {:name=>"maria", :name=>"den", :name=>"maria", :name=>"smith",
>
> Thanks in Advance!
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>


--
- NAYAK
Rake N. (Guest)
on 2009-01-11 08:20
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 <
> removed_email_address@domain.invalid> wrote:
>
>>  {:name=>"maria", :name=>"den", :name=>"maria", :name=>"smith",
>>
>> Thanks in Advance!
>> --
>> Posted via http://www.ruby-forum.com/.
>>
>> >
>>
>
>
> --
> - NAYAK


Hi Nayak,

You already have an answer to my previous post. Thank you for the helps.

Regards,
Ferdie
This topic is locked and can not be replied to.