Ruby on Rails Sunday, January 20, 2013

we can use a.count("casual") and viceversa.

On Mon, Jan 21, 2013 at 12:03 PM, Maddy <ashokkumar@shriramits.com> 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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment