Skip to content
mayoral edited this page Sep 13, 2010 · 16 revisions

General errors

When accessing a web page which uses a cells widget, you get the error: ‘uninitialized constant FirstCell’.

Ensure you have put ‘cells’ under ‘app’ directory, and ‘first_cell.rb’ in: ‘/app/cells’

Mongrel errors

Mongrel dies on startup with the error: “undefined method `plugins’ for Rails:Module”

Ensure you are running Rails version 2.2 by checking the line in environment.rb containing: "RAILS_GEM_VERSION = "

Mongrel dies on startup with the error: “/Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:445:in `load_missing_constant’: uninitialized constant Dependencies (NameError)”

Ensure you’re running the latest version of the cells plugin from github.
cd vendor/plugins
git clone git://github.com/apotonick/cells.git

Mongrel dies on startup with the error: “/vendor/plugins/cells/init.rb:42:in `evaluate_init_rb’: undefined method `engines_available?’ for Cell:Module (NoMethodError)”

  1. In environment.rb, ensure the line: “require File.join(File.dirname(FILE), ‘../vendor/plugins/cells/boot’)” is ABOVE the Rails::Initializer line.

How do I…

… prepend a view path for cells like with Rails’ prepend_view_path?

Add this to an initializer:

Cell::Base.view_paths.unshift("/Path/to/whatever")