Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails 3.1.5 will not boot with master #62

Closed
tpitale opened this issue Jun 10, 2012 · 1 comment
Closed

Rails 3.1.5 will not boot with master #62

tpitale opened this issue Jun 10, 2012 · 1 comment

Comments

@tpitale
Copy link
Contributor

tpitale commented Jun 10, 2012

gem 'rails', '3.1.5'
gem 'ember-rails', github: 'emberjs/ember-rails'

Results in:

/Users/tpitale/.rvm/gems/ruby-1.9.2-p320@docket/bundler/gems/ember-rails-82d35eb582d4/lib/ember/rails/engine.rb:19:in block in <class:Engine>': undefined methodregister_engine' for nil:NilClass (NoMethodError)

That line is app.assets.register_engine …

Rails documentation doesn't mention app.assets anywhere I could find.

I had to remove the lines from the engine and put them in application.rb like this:

config.assets.register_engine '.handlebars', Ember::Handlebars::Template
config.assets.register_engine '.hbs', Ember::Handlebars::Template
config.assets.register_engine '.hjs', Ember::Handlebars::Template
@tpitale
Copy link
Contributor Author

tpitale commented Jun 12, 2012

The issue was that due to upgrading the app from Rails 2 to 3.1 in the past I had Bundler.require before the railtie requires. It must be after the requires.

@tpitale tpitale closed this as completed Jun 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant