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.
B48da39f111f6a4db6960a1569ac65ea?d=identicon&s=25 Rake NewUser (rakenewuser)
on 2009-01-10 09: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!
9cf6e7f81d4339295b86e5fb7d7df49b?d=identicon&s=25 Vishwanath Nayak (nayak)
on 2009-01-10 13: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 <
rails-mailing-list@andreas-s.net> wrote:

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


--
- NAYAK
B48da39f111f6a4db6960a1569ac65ea?d=identicon&s=25 Rake NewUser (rakenewuser)
on 2009-01-11 07: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 <
> rails-mailing-list@andreas-s.net> 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.