Small doubt HELP me


#1

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 |


#2

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.


#3

And?

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

On 04/02/2009, at 9:31 PM, Shankar G.
<removed_email_address@domain.invalid


#4

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. removed_email_address@domain.invalid


#5

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
http://www.ruby-forum.com/topic/177617#777504. Thanks for all your
response.

Cheers,
Shankar.


#6

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. removed_email_address@domain.invalid


#7

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. removed_email_address@domain.invalid


#8

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.