Update assignments_controller.rb