Thursday, July 1, 2010

[Rails] Date issues

Hi everyone. I know that the subject I chose is general, but it is a
mixture of problems.
I searched a lot in the group, in AWD with Rails book and some forums
and found a lot of threads but none of them solved my problem, many of
them didn't work at all.
The web site manager is going to set a start date for auction for
every goods, it is not necessarily the date that object is added to
database, but the manager has to set this date when he creates the
object in database. I want to have a simple date form field with year
month and day (for example 2010-05-09) but I don't know how to convert
it to date, the suggestions in the group didn't work ( i mean to_time
and to_date and etc)
Every auction is available for just one week. If i convert the string
to date i can easily add one week to the date. During the week for
every goods, clients can input their desired prices.But the new
problems arise, how can I find today's date is equal to the end date?
does it need a daily schedule for one week? It seems schedules are
complicated in Rails. Also when the maximum price for an object has
been chosen, do i have to delete the prices of ended auctions in order
to prevent the database getting bigger and bigger? or it is not
important?
Thanks a million and Excuse me for my long scenario.

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate