新手问题 scaffold 生成的页面无法运行

sanvi · August 27, 2012 · Last by sanivbyfish replied at August 27, 2012 · 1636 hits

You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occurred while evaluating nil.[]

用 sqlite 就可以,mongoid 的话却不行

我觉得很有必要出个视频讲解一下如何分析错误的原因, @poshboytl

#1 楼 @huacnlee 确实,这些错误很摸不着头脑,而且 debug 也不太方便

这个错误好像是说我传过来为 nil,我看了下数据库发现也没创建到

#2 楼 @sanivbyfish 那是你不会看,熟悉的人定位问题很快的

#3 楼 @huacnlee 确实,期待你的视频

You need to Sign in before reply, if you don't have an account, please Sign up first.