`params[:student_id]` isn't getting passed, so this isn't going to work. You should add this to the form:

```ruby
= hidden_field_tag :student_id, current_student.id
```
Make sure that's actually getting set though.