Simple IRB Question regarding Count

Posted by Trip on Stack Overflow See other posts from Stack Overflow or by Trip
Published on 2010-05-13T13:09:52Z Indexed on 2010/05/13 13:14 UTC
Read the original article Hit count: 164

Filed under:
|

I have a class called Deal.

Deal has vote_scores.

I would like to see how many vote_scores are in Deal that are greater than 2.

My guess :

for vote_scores > 2 in Deal count end

Doesn't really work :D

© Stack Overflow or respective owner

Related posts about irb

Related posts about ruby-on-rails