当Ruby的model名字出错时,在现实view时显示错误的提示

app/controllers/courses_controller.rb:1:in `<top (required)>'
app/controllers/courses_controller.rb:1:in `<top (required)>'

 
 
undefined method `key?' for nil:NilClass

当Ruby的model名字出错时,在现实view时显示错误的提示_第1张图片

你可能感兴趣的:(Ruby)