The grade isn't created in the view, just initialized. It's an object without a record in the database. When you post to the controller, a new grade object is initialized, passed `params[:grade]`, and saved to the database. 

The line you had was only initializing a grade for the first assignment.