Tuesday, December 05, 2006

Displaying a DATE TIME field

If your column is defined to be DATETIME, then you can use the datetime_select method to display the date/time control.

datetime_select 'subscription', 'created_at' 


The default date and time values for this control can be specified. See setting the default time for datetime_select.

For more information see datetime_select manual page.

1 Comments:

At 6:51 AM, Blogger dandavat said...

rails/msg00070.html shows 404 error. Perhaps it should be rails-core/msg00070.html

 

Post a Comment

<< Home

eXTReMe Tracker