Skip to content

block in <class:HamljsRailtie>': undefined method register_engine' for Sprockets:Module (NoMethodError) #1

@johnnyicon

Description

@johnnyicon

I added the following to my Gemfile:

gem 'hamljs', :git => 'https://github.com/andrewtimberlake/ruby-hamljs'

After running bundle install, starting the server spit up the following error:

/Users/theuser/.rvm/gems/ruby-1.9.2-p290@railsapp/bundler/gems/ruby-hamljs-b49f9bcc9495/lib/hamljs/railtie.rb:8:in `block in <class:HamljsRailtie>': 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 <module:Bootstrap>'
    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 `<top (required)>'
    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 `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions