Topic: Replacing the scaffold code (?)
At the moment i've got the default scaffold methods of 'new', 'edit' etc. But i'm not happy about some of the functionality - for example, when adding a new post to a posting list, the time that's recorded is the time when the user *started* to edit their new post, not the time they hit submit and actually posted it.
I can't work out where in the code i need to edit, though, to change what happens when the user hits submit (at which point i'd enter a datetime into the database). I can't see a datetime being created anywhere at the moment.
How do i go about fixing this, does anyone know?
#If i've helped you then please recommend me at Working With Rails: