On 2/21/06, Henning Pedersen <[EMAIL PROTECTED]> wrote:
> Greg Freemyer wrote:
> > I've just been testing out the dateboxes I created Friday.
> >
> > They seem to be working good except I had a couple I wanted to
> > initialize with today's date.
> >
> > With the scaffold code it happened automatically.
> >
> > With the datebox engine I'm having to do it manually.
> >
> > I'm using ':date_started => Time.now.strftime("%m/%d/%Y")'
> >
> > Is there another preset variable floating around that would be cleaner?
>
> If it's datetime:
>
> :date_started => Time.now()
>
> If it's date:
>
> :dated_started => Date.today()

Thanks,

I saw the Date class in the ruby book, but not the today() method.

Greg
--
Greg Freemyer
The Norcross Group
Forensics for the 21st Century
_______________________________________________
engine-users mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org

Reply via email to