we can use a.count("casual") and viceversa.
On Mon, Jan 21, 2013 at 12:03 PM, Maddy <[email protected]> wrote:
> Hi Everyone,
>
> Good Day,
>
> a=[ 'casual','sick','casual','sick','casual','sick','casual','sick' ]
>
> I need to collect casual's count and sick's count like,
> Caual :4
> Sick :4
>
> Thank you,
>
> --
> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/VgwlFav-X6IJ.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
Mobile : +91 9035988755
Facebook : http://www.facebook.com/bala.kishore.21
linkedin : http://www.linkedin.com/profile/view?id=7562848
twitter : https://twitter.com/balakishorep
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.