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()

-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
engine-users mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org

Reply via email to