cannot bootstrap (undefined method `register_template_handler' for ActionView::Base:Class)
Reported by Krzysztof Kaczmarek | April 2nd, 2008 @ 11:04 AM
rake db:bootstrap --trace
(in /home/sihingpl/mephisto)
** Invoke db:bootstrap (first_time)
** Execute db:bootstrap
mkdir -p /home/sihingpl/mephisto/log
** Execute environment
rake aborted!
undefined method `register_template_handler' for ActionView::Base:Class
/home/sihingpl/mephisto/vendor/plugins/liquid/init.rb:4:in `evaluate_init_rb'
/home/sihingpl/mephisto/config/../vendor/rails/railties/lib/rails/plugin.rb:95:in `evaluate_init_rb'
/home/sihingpl/mephisto/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
/home/sihingpl/mephisto/config/../vendor/rails/railties/lib/rails/plugin.rb:91:in `evaluate_init_rb'
/home/sihingpl/mephisto/config/../vendor/rails/railties/lib/rails/plugin.rb:44:in `load'
/home/sihingpl/mephisto/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:33:in `load_plugins'
/home/sihingpl/mephisto/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:32:in `load_plugins'
/home/sihingpl/mephisto/config/../vendor/rails/railties/lib/initializer.rb:241:in `load_plugins'
/home/sihingpl/mephisto/config/../vendor/rails/railties/lib/initializer.rb:122:in `process'
/home/sihingpl/mephisto/config/../vendor/rails/railties/lib/initializer.rb:77:in `run'
/home/sihingpl/mephisto/config/environment.rb:17
/usr/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
/home/sihingpl/mephisto/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require'
/home/sihingpl/mephisto/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
/home/sihingpl/mephisto/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require'
/home/sihingpl/mephisto/vendor/rails/railties/lib/tasks/misc.rake:3
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
/home/sihingpl/mephisto/lib/tasks/bootstrap.rake:28
/home/sihingpl/mephisto/lib/tasks/bootstrap.rake:28
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:544:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/thread.rb:135:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_task'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31
/usr/bin/rake:19
Comments and changes to this ticket
-

-

Krzysztof Kaczmarek April 2nd, 2008 @ 11:06 AM
- → Assigned user changed from to Adam C. Greenfield
-

vesan May 23rd, 2008 @ 10:44 AM
This worked for me (copied from http://code.google.com/p/liquid-...):
"
This is pretty easy to fix.
In init.rb within the Liquid plugin directory, make the following simple change:
ActionView::Base::register_template_handler :liquid, LiquidView
becomes...
ActionView::Template::register_template_handler :liquid, LiquidView
"
-
David Lowenfels June 14th, 2008 @ 09:54 PM
put this in config/environment.rb (and make sure you have rails 2.0.2 installed)
RAILS_GEM_VERSION = '2.0.2' unless defined? RAILS_GEM_VERSION
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
