# Fixing a "config.handlebars" undefined method error

**URL:** <https://meta.discourse.org/t/fixing-a-config-handlebars-undefined-method-error/39964>\
**Category:** Development\
**Created:** [February 22, 2016, 4:59am UTC](https://meta.discourse.org/t/fixing-a-config-handlebars-undefined-method-error/39964 "2016-02-22T04:59:51Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![zombiezen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zombiezen/32/121947_2.png) [@zombiezen](https://meta.discourse.org/u/zombiezen)\
**Post date:** [February 22, 2016, 4:59am UTC](https://meta.discourse.org/t/fixing-a-config-handlebars-undefined-method-error/39964/1 "2016-02-22T04:59:51Z")

</div>

I’m trying to run Discourse 1.4.5 in a dev environment. When I go to run `bin/rake db:create db:migrate`, it crashes with:

```
rake aborted!
NoMethodError: undefined method `handlebars' for #<Rails::Application::Configuration:0x000000032c50a8>
/opt/app/.bundle/ruby/2.1.0/gems/railties-4.1.10/lib/rails/railtie/configuration.rb:95:in `method_missing'
/opt/app/config/application.rb:140:in `<class:Application>'
/opt/app/config/application.rb:19:in `<module:Discourse>'
/opt/app/config/application.rb:18:in `<top (required)>'
/opt/app/.bundle/ruby/2.1.0/gems/activesupport-4.1.10/lib/active_support/dependencies.rb:247:in `block in require'
/opt/app/.bundle/ruby/2.1.0/gems/activesupport-4.1.10/lib/active_support/dependencies.rb:232:in `load_dependency'
/opt/app/.bundle/ruby/2.1.0/gems/activesupport-4.1.10/lib/active_support/dependencies.rb:247:in `require'
/opt/app/Rakefile:5:in `<top (required)>'
/opt/app/.bundle/ruby/2.1.0/gems/activesupport-4.1.10/lib/active_support/dependencies.rb:241:in `load'
/opt/app/.bundle/ruby/2.1.0/gems/activesupport-4.1.10/lib/active_support/dependencies.rb:241:in `block in load'
/opt/app/.bundle/ruby/2.1.0/gems/activesupport-4.1.10/lib/active_support/dependencies.rb:232:in `load_dependency'
/opt/app/.bundle/ruby/2.1.0/gems/activesupport-4.1.10/lib/active_support/dependencies.rb:241:in `load'
(See full trace by running task with --trace)

```

I’m not a Ruby developer per se, so much of the Gem/bundler specifics are lost on me. Any ideas on how to debug or fix this? I’ve tried explicitly adding a `require` for `ember/handlebars/template` in `config/boot.rb`, but no avail.

---

_[View the full topic](https://meta.discourse.org/t/fixing-a-config-handlebars-undefined-method-error/39964)._
