# Stripe Rails Comments?

**URL:** <https://www.ruby-forum.com/t/stripe-rails-comments/176062>\
**Category:** Rails\
**Created:** [September 24, 2009, 9:19am UTC](https://www.ruby-forum.com/t/stripe-rails-comments/176062 "2009-09-24T09:19:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vellingiri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5fc32e/32.png) [@vellingiri](https://www.ruby-forum.com/u/vellingiri)\
**Post date:** [September 24, 2009, 9:19am UTC](https://www.ruby-forum.com/t/stripe-rails-comments/176062/1 "2009-09-24T09:19:30Z")

</div>

how to stripe rails comments ?  
I have searched google, but i could not get proper module.  
Please  
anyone help me how to do this ?

Regards  
S.Vellingiri.

---

<div class="post-metadata">

**Author:** ![vellingiri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5fc32e/32.png) [@vellingiri](https://www.ruby-forum.com/u/vellingiri)\
**Post date:** [September 24, 2009, 2:52pm UTC](https://www.ruby-forum.com/t/stripe-rails-comments/176062/2 "2009-09-24T14:52:04Z")

</div>

On Sep 24, 2009, at 3:08 AM, vellingiri wrote:

> how to stripe rails comments ?  
> I have searched google, but i could not get proper module.  
> Please  
> anyone help me how to do this ?
> 
> Regards  
> S.Vellingiri.

Well, assuming that you meant to ask:  
“How can I alternate the visual presentation of elements in a list?”

You can use the cycle() method:

.odd { background-color: #fff; } .even { background-color: #ccc; }

\<% @comments.each do |comment| -%\>

\<%= comment %\>
\<% end -%\>

Please ask a better question next time (and let us know that you at  
least tried to search Google for it).

-Rob

Rob B. [http://agileconsultingllc.com](http://agileconsultingllc.com)  
removed\_email\_address@domain.invalid
