--------------------------------------------------------------- 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 "<div style="color:red">test</div><div style="color:blue">test3</div>" 20090102 "<div style="color:green">test2</div><div style="color:red">test</div><div style="color:blue">test3</div><div style="color:orange">test4</div>" 20090103 "<div style="color:green">test2</div><div style="color:red">test</div><div style="color:blue">test3</div><div style="color:orange">test4</div>" 20090104 "<div style="color:green">test2</div><div style="color:red">test</div><div style="color:blue">test3</div><div style="color:orange">test4</div>" Thanks in Advance -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Shankar, Have a look at the api documentation for the cycle method http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#M001551 Thanks, Rob Shankar Ganesh wrote:> --------------------------------------------------------------- > 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 "<div style="color:red">test</div><div > style="color:blue">test3</div>" > 20090102 "<div style="color:green">test2</div><div > style="color:red">test</div><div style="color:blue">test3</div><div > style="color:orange">test4</div>" > 20090103 "<div style="color:green">test2</div><div > style="color:red">test</div><div style="color:blue">test3</div><div > style="color:orange">test4</div>" > 20090104 "<div style="color:green">test2</div><div > style="color:red">test</div><div style="color:blue">test3</div><div > style="color:orange">test4</div>" > > Thanks in Advance > -- > Posted via http://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Is it possible to get using cycle method?? Rob Zolkos wrote:> Hi Shankar, > > Have a look at the api documentation for the cycle method > > http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#M001551 > > Thanks, > Rob-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---