Small doubt HELP me

Hi ,

I have table like this
 ---------------------------------------------------------------
|id | what   | when      | color  |   to      | description     |

1 | test |2009-02-01 | red |2009-02-15 | hi this is test |

2 | test2 |2009-02-02 | green |2009-02-14 | hi this is test |

not only that you haven’t given your post a good title (“Help me” says
nothing), but you didn’t even specify your question or problem in your
post.

And?

Blog: http://random8.zenunit.com/
Learn rails: http://sensei.zenunit.com/

On 04/02/2009, at 9:31 PM, Shankar G.
<[email protected]

What do you mean by “I have table like this”? is an ASCII table and
you want to parse it and generate the output, or you have a table like
that in your data base?

On Feb 4, 10:31 am, Shankar G. [email protected]

Hi all,

 My apologies for posting a small amount of data, there was some 

mistake in posting this post.You can see the full post of the forum here
Small doubt HELP me - Rails - Ruby-Forum. Thanks for all your
response.

Cheers,
Shankar.

Hi Shankar,

It would help if you explained where exactly you want that kind of
output.
In the views?
and by “2009-02-12=>” you mean the query to the DB should be based on
the ‘when’ field?

On Feb 5, 8:33 am, Shankar G. [email protected]

He means the content of his SQL table represented as ASCII was as he
had it.

Blog: http://random8.zenunit.com/
Learn rails: http://sensei.zenunit.com/

On 05/02/2009, at 3:06 AM, Miguel R. [email protected]

Ram,

Thanks for your help dude.Yes, I would like to have the output in 

the ‘view’ and the value should be fetched based on ‘when’ and ‘to’
fields.

cheers,
shankar.