meleyal / backbone-on-rails

A simple gem for using Backbone.js with Rails.
MIT License
810 stars 126 forks source link

backbone:install with --namespace option causes Error #31

Closed calebhearth closed 11 years ago

calebhearth commented 11 years ago

I'm not entirely sure that this is backbone-on-rails' fault, but I just saw this error come up after installing the gem for the first time and running backbone:install with the --namespace option and got this error:

rails g backbone:install --namespace document_library
      append  app/assets/javascripts/application.js
      create  app/assets/javascripts/document_library/collections
      create  app/assets/javascripts/document_library/models
      create  app/assets/javascripts/document_library/routers
      create  app/assets/javascripts/document_library/views
      create  app/assets/templates/document_library
      create  app/assets/javascripts/document_library/backbone_test_project.js.coffee
/home/caleb/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:581:in `block in process_args': invalid option: --namespace (OptionParser::InvalidOption)
    from /home/caleb/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:560:in `new'
    from /home/caleb/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:560:in `process_args'
    from /home/caleb/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:591:in `run'
    from /home/caleb/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/minitest/unit.rb:508:in `block in autorun'

Feel free to close if you think this is a minitest or a Rails issue rather than one with backbone-on-rails.

meleyal commented 11 years ago

Can you check which version of the gem you're using? (cat Gemfile.lock | grep backbone-on-rails)

meleyal commented 11 years ago

I removed the --namespace option for now, see here: https://github.com/meleyal/backbone-on-rails/issues/36