Forum: Ruby on Rails small doubt HELP me

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Shankar G. (Guest)
on 2009-02-04 12:31
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 |
---------------------------------------------------------------
MaD (Guest)
on 2009-02-04 12:37
(Received via mailing list)
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.
Julian L. (Guest)
on 2009-02-04 13:23
(Received via mailing list)
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
Miguel R. (Guest)
on 2009-02-04 18:07
(Received via mailing list)
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>
Julian L. (Guest)
on 2009-02-05 03:41
(Received via mailing list)
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>
Shankar G. (Guest)
on 2009-02-05 05:33
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.
Ram (Guest)
on 2009-02-05 07:34
(Received via mailing list)
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>
Shankar G. (Guest)
on 2009-02-05 07:37
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.
This topic is locked and can not be replied to.