Closed mspanc closed 9 years ago
Same happens to me, after running bundle install
and then rails g backbone:install
I get:
Could not find generator backbone:install.
I was able to install and use generators with rails 4. @saepia what error did you get?
I was able to use it with a Rails 4 app.
Could not find generator backbone:install 28 lut 2014 05:25 "Jade McGough" notifications@github.com napisał(a):
I was able to install and use generators with rails 4. @saepiahttps://github.com/saepiawhat error did you get?
— Reply to this email directly or view it on GitHubhttps://github.com/codebrew/backbone-rails/issues/169#issuecomment-36320913 .
I had the same trouble; Could not find generator backbone:install
I'm using Rails 4.0.1, Ruby 2.1.1.
I stopped spring after installing the bundle, and both variants--rails g backbone:install
and bundle exec rails g backbone:install
failed to find the generator.
That, I believe, answers most of the obvious questions...
Oh hey. I think I figured out the problem.
@saepia add the gem 'rails-backbone' instead of 'backbone-rails'
@saepia are you still facing the problem ?
Sorry, I had no time to check that yet
Right now I cannot install the gem. Tried on fresh RoR 4.0.4 app.
Bundler could not find compatible versions for gem "jquery-rails":
In Gemfile:
rails-backbone (~> 0.9.10) ruby depends on
jquery-rails (~> 2.1.3) ruby
jquery-rails (3.1.0)
my Gemfile
ruby '2.1.0'
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.4'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.2'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 1.2'
gem "rails-backbone", "~> 0.9.10"
group :doc do
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', require: false
end
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano', group: :development
# Use debugger
# gem 'debugger', group: [:development, :test]
@saepia rails-backbone version 0.9.10 is not compatible with rails 4. You will have to use the master branch on github to make it work with Rails 4 gem 'rails-backbone', github: 'codebrew/backbone-rails', branch: 'master'
@saepia hope you have resolved the issue
Nope, I have switched to rails 4 already and I am not going to use unstable versions o gems.
After all, adding backbone to the project manually means just copying a few files to vendor/assets and it's fine for me. (I don't use generators a lot, main purpose of such gem for me is that I don't manually clutter vendor/assets/* and upgrading libraries is done by upgrading gem, I don't care about the rest)
gem 'rails-backbone', github: 'codebrew/backbone-rails', branch: 'master'
Not working for me with Rails 4.1RC2
@mspanc the current master branch is updated to backbone.js version 1.1.2 and underscore 1.6.0 All tests are passing fine.
Currently I only have access to the github repo and dont have permissions on rubygems to release newer versions of the gem, I am trying to contact @ryanfitz or codebrew studios for the access or releasing latest versions.
@shlima Can you pls provide more details on any error that you have encountered ? btw, I have tested the gem, pointing it to master, with Rails 4.1.2 and everything seems to be working fine for me. You can find the sample app here
Closing this for now. Please feel free to reopen if you face issues.
I had the same issue and spring stop
resolved it.
Generators are not available in RoR4