Ruby on rails 3 机车CMS未定义方法`计数';零级:零级
我试图在本地设置并运行机车CMS,但遇到以下错误:Ruby on rails 3 机车CMS未定义方法`计数';零级:零级,ruby-on-rails-3,locomotivecms,Ruby On Rails 3,Locomotivecms,我试图在本地设置并运行机车CMS,但遇到以下错误: NoMethodError in Locomotive/pages#index Showing /Users/dennismonsewicz/.rvm/gems/ruby-1.9.3-p125/gems/locomotive_cms-2.0.0.rc4/app/views/locomotive/pages/_page.html.haml where line #4 raised: undefined method `count' for n
NoMethodError in Locomotive/pages#index
Showing /Users/dennismonsewicz/.rvm/gems/ruby-1.9.3-p125/gems/locomotive_cms-2.0.0.rc4/app/views/locomotive/pages/_page.html.haml where line #4 raised:
undefined method `count' for nil:NilClass
Extracted source (around line #4):
1: - if page.not_found?
2: %li.sep
3:
4: %li{ :id => "item-#{page.id}", :class => "page #{css_for_page(page)}" }
5:
6: - children = can?(:manage, page) ? page.children : page.children.find_all { |p| !p.templatized? }
7:
还有人在火车头上碰到这个问题吗
机车Gem:Gem“机车”cms',“~>2.0.0.rc.4',:require=>“机车/发动机”
我能够获得管理员用户设置,但当您完成初始设置后,应用程序会将您重定向到/mobile/页面,然后我在mobile的文档中收到该错误,他们在您的Gem文件中声明执行以下操作:
gem'motor\u cms',“~>2.0.0.rc4',:require=>“机车/发动机”
但实际上,您必须执行以下操作:
gem'motor\u cms',:require=>'机车/发动机',:git=>“git://github.com/locomotivecms/engine.git“