app/controllers/courses_controller.rb:1:in `<top (required)>'
undefined method `key?' for nil:NilClass