I have a time-entry system which I’m creating, and would like to know
the best way to code a form where users can modify and create new
The screen will show time entries for the day. The user can modify
existing entries, as well as enter new ones.
Here’s a sample screen:
4 Project 1
2 Project 2
The user can change the existing records, as well as enter new ones.
There should always be four or five blank records like the ones marked
I just want one “Submit” button on the form.
I suspect there are two ways of accomplishing this:
When the user presses “Submit”, just zap all records from a given
day, and re-create the newly submitted time entries.
Update the records that already exist, and create the records that do
not yet have IDs.
Does anyone have a bird’s eye solution to this? For example, do I use
my controller’s “Create” or “Save” method to do this?