# Any one help

**URL:** <https://www.ruby-forum.com/t/any-one-help/158892>\
**Category:** Rails\
**Created:** [January 29, 2009, 4:57am UTC](https://www.ruby-forum.com/t/any-one-help/158892 "2009-01-29T04:57:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lookshankar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/7bcc69/32.png) [@lookshankar](https://www.ruby-forum.com/u/lookshankar)\
**Post date:** [January 29, 2009, 4:57am UTC](https://www.ruby-forum.com/t/any-one-help/158892/1 "2009-01-29T04:57:22Z")

</div>

* * *

## id | what | when | color | to | description |

## 1 | test |01/01/2009 | red |04/01/2009 | hi this is test |

## 2 | test2 |02/01/2009 | green |04/01/2009 | hi this is test |

## 3 | test3 |01/01/2009 | blue |04/01/2009 | hi this is test |

## 4 | test4 |02/01/2009 | orange |04/01/2009 | hi this is test |

I WANT TO HAVE OUTPUT LIKE THIS.,

20090101 “

test
test3”  
20090102 “
test2
test
test3
test4”  
20090103 “
test2
test
test3
test4”  
20090104 “
test2
test
test3
test4”

Thanks in Advance

---

<div class="post-metadata">

**Author:** ![lookshankar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/7bcc69/32.png) [@lookshankar](https://www.ruby-forum.com/u/lookshankar)\
**Post date:** [January 29, 2009, 5:25am UTC](https://www.ruby-forum.com/t/any-one-help/158892/2 "2009-01-29T05:25:34Z")

</div>

Hi Shankar,

Have a look at the api documentation for the cycle method

> **[ActionView::Helpers::TextHelper](https://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#M001551)**
>
> The TextHelper module provides a set of methods for filtering, formatting and transforming strings, which can reduce the amount of inline Ruby code in your views.

Thanks,  
Rob

---

<div class="post-metadata">

**Author:** ![lookshankar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/7bcc69/32.png) [@lookshankar](https://www.ruby-forum.com/u/lookshankar)\
**Post date:** [January 29, 2009, 5:41am UTC](https://www.ruby-forum.com/t/any-one-help/158892/3 "2009-01-29T05:41:46Z")

</div>

Is it possible to get using cycle method??

Rob Zolkos wrote:

> Hi Shankar,
> 
> Have a look at the api documentation for the cycle method
> 
> [ActionView::Helpers::TextHelper](http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#M001551)
> 
> Thanks,  
> Rob
