You do not need to save the assignment.id. You send the form to a view, that knows which assignment is to use.