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

Issues with rails g ember:install #91

Closed
ErikMejerHansen opened this issue Aug 30, 2012 · 2 comments
Closed

Issues with rails g ember:install #91

ErikMejerHansen opened this issue Aug 30, 2012 · 2 comments

Comments

@ErikMejerHansen
Copy link

Running "rails g ember:install" does not install ember.js files into "vendor/assets/ember" as expected.
Running "rails g ember:install --head" does place the ember.js files into "vedor/assets/ember"

To reproduce:

  1. rails new ember-rails-test (with rails version '3.2.8')
  2. add "gem 'ember-rails', github: 'emberjs/ember-rails'" to GemFile
  3. run "bundle install"
  4. add "config.ember.variant = :development" to development.rb
  5. run "rails g ember:install". Produces no output
  6. run "rails g ember:bootstrap"
  7. create controller and hit view in browser. Produces following errors in console:
    Uncaught Error: assertion failed: Ember Views require jQuery 1.7 ember.js:43
    Uncaught TypeError: Cannot call method 'extend' of undefined :3000/assets/ember-data.js?body=1:141
    Uncaught TypeError: Cannot call method 'create' of undefined ember.js:10183
    Uncaught ReferenceError: ember-rails-test is not defined :3000/assets/store.js?body=1:1
    Uncaught ReferenceError: ember-rails-test is not defined :3000/assets/controllers/application_controller.js?body=1:1
    Uncaught ReferenceError: ember-rails-test is not defined :3000/assets/views/application_view.js?body=1:1
    Uncaught TypeError: Cannot call method 'template' of undefined :3000/assets/templates/application.js?body=1:1
    Uncaught ReferenceError: ember-rails-test is not defined app_router.js:1
    Uncaught ReferenceError: ember-rails-test is not defined
  8. Run "rails g ember:bootstrap --head"
  9. Views load fine
@lukebooth
Copy link

For step 8, did you mean to say: Run "rails g ember:install --head"?

I'm running into the same problem you are. When I try "rails g ember:install", I get this output:

Could not find "ember.js" in any of your source paths. Your current source paths are:
/Users/name/.rvm/gems/ruby-1.9.3-p0/gems/vendor/assets/javascripts

Running "rails g ember:install --head" (after installing phantomjs) does put ember.js in vendor/assets/javascripts, but finishes the command with:

Could not find "ember.debug.js" in any of your source paths. Your current source paths are:
/Users/name/.ember/dist

@stefanpenner
Copy link
Member

this should be fixed.

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

3 participants