emberjs / ember-rails

Ember for Rails 3.1+
https://github.com/emberjs/ember-rails
MIT License
1.36k stars 252 forks source link

can't get pass ember:bootstrap #449

Open kewubenduben opened 9 years ago

kewubenduben commented 9 years ago

What am I missing here?

➜  geo_trak git:(master) ✗ grep ember Gemfile*                       
Gemfile:gem "ember-rails", "~> 0.16.4"
Gemfile:gem "ember-source", "~> 1.10.0"
Gemfile.lock:      ember-source
Gemfile.lock:    ember-data-source (1.0.0.beta.15)
Gemfile.lock:      ember-source (~> 1.8)
Gemfile.lock:    ember-rails (0.16.4)
Gemfile.lock:      ember-data-source (>= 1.0.0.beta.5)
Gemfile.lock:      ember-source (>= 1.1.0)
Gemfile.lock:    ember-source (1.10.0)
Gemfile.lock:  ember-rails (~> 0.16.4)
Gemfile.lock:  ember-source (~> 1.10.0)
➜  geo_trak git:(master) ✗ bundle exec rails generate ember:bootstrap
      insert  app/assets/javascripts/application.js
       exist  app/assets/javascripts/models
   identical  app/assets/javascripts/models/.gitkeep
       exist  app/assets/javascripts/controllers
   identical  app/assets/javascripts/controllers/.gitkeep
       exist  app/assets/javascripts/views
   identical  app/assets/javascripts/views/.gitkeep
       exist  app/assets/javascripts/routes
   identical  app/assets/javascripts/routes/.gitkeep
       exist  app/assets/javascripts/helpers
   identical  app/assets/javascripts/helpers/.gitkeep
       exist  app/assets/javascripts/components
   identical  app/assets/javascripts/components/.gitkeep
       exist  app/assets/javascripts/templates
   identical  app/assets/javascripts/templates/.gitkeep
       exist  app/assets/javascripts/templates/components
   identical  app/assets/javascripts/templates/components/.gitkeep
       exist  app/assets/javascripts/mixins
   identical  app/assets/javascripts/mixins/.gitkeep
       exist  app/assets/javascripts/adapters
   identical  app/assets/javascripts/adapters/.gitkeep
Could not find "app.js.false" in any of your source paths. Your current source paths are: 
/home/kramos/Projects/phewcentral/geo_trak/lib/templates/ember/bootstrap
/home/kramos/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/ember-rails-0.16.4/lib/generators/templates
tricknotes commented 9 years ago

It looks you have the following config in any place.

config.app_generators.javascript_engine false

Or --javascript-engine false option is passed to generator.

Please try:

$ bundle exec rails generate ember:bootstrap --javascript-engine js
kewubenduben commented 9 years ago

That worked. Should that be in the README and top note?

tricknotes commented 9 years ago

I prefer throw error with message including available options if invalid option is given.

By the way, where do you configure config.app_generators.javascript_engine ? Or caused by other gems?

kewubenduben commented 9 years ago

The rails app is generated from Thoughtbot's suspenders.

:+1: with the better error message.

tricknotes commented 9 years ago

Thanks, I see. It can't be avoided.

If you would be interested in matter, would you mind sending a PR?