Jonathan Dobbie wrote:
http://localhost/.../student/new has entries for created_on
and updated_on. I'd like these to be handled automatically.
I know that Rails will automatically update a field called 'updated_at' if you're using AR for session management. I've copied in my script below. I haven't used 'created_at' but I believe that works the same way. I'm using MySQL. I don't know whether or not that's a requirement.
create table sessions (
id int not null auto_increment,
updated_at datetime default NULL,
index session_index (sessid)