I don't think you need the `:grade => ` part.

I would prefer the student `grades` association be used instead of `@assignment.grades`:

```ruby
current_user.grades.create(params[:grade])
```