seyhunak / twitter-bootstrap-rails

Twitter Bootstrap for Rails 6.0, Rails 5 - Rails 4.x Asset Pipeline
https://github.com/seyhunak/twitter-bootstrap-rails
4.5k stars 998 forks source link

Could not find generator bootstrap:install on Rails 4.1 #819

Closed sushant2675 closed 9 years ago

sushant2675 commented 9 years ago

When I run in the command line: rails generate bootstrap:install less I get the above: Could not find generator bootstrap:install message.

My gem file is:

source 'https://rubygems.org'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.0.rc2'

# Use postgresql as the database for Active Record
gem 'pg'

# Use SCSS for stylesheets
gem 'sass-rails'

# 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'

# 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', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0',          group: :doc

# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring',        group: :development

gem 'devise'

gem "therubyracer"

gem "less-rails"  #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS

# twitter bootstrap css & javascript toolkit
gem 'twitter-bootstrap-rails', :git => 'git://github.com/seyhunak/twitter-bootstrap-rails.git'

twitter-bootstrap-rails version is 3.2.0

therubyracer version is 0.12.1

execjs version is 2.2.2

ruby version is 2.1.1

I am on Mac OS X 10.9.3

I do not understand what am I doing wrong because with same config in my other project in this very system I have used Twitter Bootstrap Rails successfully.

toadkicker commented 9 years ago

Less is the default option, you should be able to run the install generator without it. Also I always recommend LESS or SCSS/SASS, but not both. It's better to pick a single preprocessor than to mix them. If you need ruby parsing in LESS, the less-rails gem provides that for you.

I do not have Mac OS 10.9, so I'm not sure if there is any issue in the OS in particular. Also I'm curious about rails 4.1 rc, and if you try changing to a release build if there is a difference.

Finally, I've forked this project, cleaned up a lot of the mess in it, and added a lot more to bootstrap. If you're interested in an easy upgrade path, check out railsstrap. I don't think @seyhunak is really supporting this gem much these days. There are just a number of additions I wanted to include to compete with other gems doing similar functions.