thoughtbot/high_voltage — Issue #31: v0.9.2 is not working with Rails2
Author: tatsuquito
Created: 2012-02-16 02:49:04+00:00
State: open

This is related to the issue #18. I followed the instruction to use v0.9.2 for Rails2. I installed high_voltage tagged in v.0.9.2:

script/plugin install "git://github.com/thoughtbot/high_voltage.git" -r "tag v0.9.2"

It was installed without any errors, but when I ran webrick, the error was returned:

/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:466:in `load_missing_constant': uninitialized constant Rails::Engine (NameError)
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:106:in `const_missing'
from /Users/tatsuquito/work/classee-bs/vendor/plugins/high_voltage/lib/high_voltage/engine.rb:3

My rails app tries to read the Rails3 variable "Rails::Engine" in lib/high_voltage/engine.rb, which is not supported by Rails2. I try to skip this file by uncommenting that line and still get another error:

/Users/tatsuquito/work/classee-bs/vendor/plugins/high_voltage/config/routes.rb:1: undefined method `application' for Rails:Module (NoMethodError)

It seems that "application" is another Rails3 stuff.

Can you provide me more precise instruction to run it under Rails2? Thank you.

Tatsuquito