Current date in rails form

Posted by Dean on Stack Overflow See other posts from Stack Overflow or by Dean
Published on 2010-05-24T10:14:44Z Indexed on 2010/05/24 10:21 UTC
Read the original article Hit count: 424

Filed under:
|

Hi,
Im learning rails and exploring a bit away from the book and creating a simple application with added functionality as i increase my knowledge. Im writing a simple blog application and i have a field in the form called date added, i don't want this to be a field i want it to get the date from the server and place it in to the database automatically. How would i go about doing this? I was thinking of a hidden field but then unsure on how to process the date and insert it to the hidden field. Is this the wrong way of going about things?
Thanks in Advance,
Dean

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby