andrewtimberlake/ruby-hamljs — Issue #1: `block in <class:HamljsRailtie>': undefined method `register_engine' for Sprockets:Module (NoMethodError)
Author: johnnyicon
Created: 2012-02-05 04:45:07+00:00
State: open

I'm trying to use your plugin with Backbone and Rails. I added the following to my Gemfile:
```
gem 'rails-backbone'
gem 'hamljs', :git => 'https://github.com/andrewtimberlake/ruby-hamljs'
```
Using the following command to generate a backbone scaffold gave me an error:
```
rails g backbone:scaffold List label:string description:text slug:string
```
```
/Users/theuser/.rvm/gems/ruby-1.9.2-p290@railsapp/bundler/gems/ruby-hamljs-b49f9bcc9495/lib/hamljs/railtie.rb:8:in `block in ': undefined method `register_engine' for Sprockets:Module (NoMethodError)
from /Users/theuser/.rvm/gems/ruby-1.9.2-p290@railsapp/gems/activesupport-3.1.3/lib/active_support/lazy_load_hooks.rb:34:in `call'
from /Users/theuser/.rvm/gems/ruby-1.9.2-p290@railsapp/gems/activesupport-3.1.3/lib/active_support/lazy_load_hooks.rb:34:in `execute_hook'
from /Users/theuser/.rvm/gems/ruby-1.9.2-p290@railsapp/gems/activesupport-3.1.3/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
from /Users/theuser/.rvm/gems/ruby-1.9.2-p290@railsapp/gems/activesupport-3.1.3/lib/active_support/lazy_load_hooks.rb:42:in `each'
from /Users/theuser/.rvm/gems/ruby-1.9.2-p290@railsapp/gems/activesupport-3.1.3/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
from /Users/theuser/.rvm/gems/ruby-1.9.2-p290@railsapp/gems/railties-3.1.3/lib/rails/application/bootstrap.rb:68:in `block in '
from /Users/theuser/.rvm/gems/ruby-1.9.2-p290@railsapp/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/theuser/.rvm/gems/ruby-1.9.2-p290@railsapp/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `run'
from /Users/theuser/.rvm/gems/ruby-1.9.2-p290@railsapp/gems/railties-3.1.3/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/theuser/.rvm/gems/ruby-1.9.2-p290@railsapp/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `each'
from /Users/theuser/.rvm/gems/ruby-1.9.2-p290@railsapp/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/theuser/.rvm/gems/ruby-1.9.2-p290@railsapp/gems/railties-3.1.3/lib/rails/application.rb:96:in `initialize!'
from /Users/theuser/.rvm/gems/ruby-1.9.2-p290@railsapp/gems/railties-3.1.3/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/theuser/Workspace/railsapp/config/environment.rb:5:in `'
from /Users/theuser/.rvm/gems/ruby-1.9.2-p290@railsapp/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require'
from /Users/theuser/.rvm/gems/ruby-1.9.2-p290@railsapp/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `block in require'
from /Users/theuser/.rvm/gems/ruby-1.9.2-p290@railsapp/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `block in load_dependency'
from /Users/theuser/.rvm/gems/ruby-1.9.2-p290@railsapp/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:640:in `new_constants_in'
from /Users/theuser/.rvm/gems/ruby-1.9.2-p290@railsapp/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `load_dependency'
from /Users/theuser/.rvm/gems/ruby-1.9.2-p290@railsapp/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require'
from /Users/theuser/.rvm/gems/ruby-1.9.2-p290@railsapp/gems/railties-3.1.3/lib/rails/application.rb:83:in `require_environment!'
from /Users/theuser/.rvm/gems/ruby-1.9.2-p290@railsapp/gems/railties-3.1.3/lib/rails/commands.rb:22:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'
```