# How to write cycle helper for this code

**URL:** <https://www.ruby-forum.com/t/how-to-write-cycle-helper-for-this-code/170574>\
**Category:** Rails\
**Created:** [June 19, 2009, 7:50am UTC](https://www.ruby-forum.com/t/how-to-write-cycle-helper-for-this-code/170574 "2009-06-19T07:50:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nike](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/dbc845/32.png) [@nike](https://www.ruby-forum.com/u/nike)\
**Post date:** [June 19, 2009, 7:50am UTC](https://www.ruby-forum.com/t/how-to-write-cycle-helper-for-this-code/170574/1 "2009-06-19T07:50:17Z")

</div>

Headline tortor sit amet tellus interdum Headline tortor sit amet tellus interdum Headline tortor sit amet tellus interdum Headline sit amet tellus interdum

---

<div class="post-metadata">

**Author:** ![nike](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/dbc845/32.png) [@nike](https://www.ruby-forum.com/u/nike)\
**Post date:** [June 19, 2009, 1:59pm UTC](https://www.ruby-forum.com/t/how-to-write-cycle-helper-for-this-code/170574/2 "2009-06-19T13:59:39Z")

</div>

On 19 June, 06:50, Nike M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> border-bottom:1px solid #ebeae9;"\>  
> Headline tortor sit amet tellus interdum   
>   
>   
> Headline sit amet tellus interdum
> 
> -- Posted viahttp://www.ruby-forum.com/.

Hi,

I’m not sure why you need a cycle helper for this. Each is  
identical, it’s just the style of the two s within the row that  
change. A standard iteration would be fine over each row.

Regards

Robin
