0
我在测试使用太阳黑子搜索的索引页时出错。如何测试太阳黑子搜索结果或点击
*** NoMethodError Exception: undefined method `[]' for nil:NilClass
我写的代码是
@object.hits
也会出现此错误与
@object.results
我试图@ object.present? ,@ object.blank? ,@ object.nil?
我用雷进行分页我的结果
= paginate(@object.hits)