---------------------------------------------------------------
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to