0

can anyone help me? I already did everything to install Bootstrap on my Ruby on Rails application, however continues to appear without bootstrap format.

I have Rails 4.2.5.1

in gemfile I added, and ran bundle install

gem 'bootstrap-sass', '~> 3.3.6'
gem 'sass-rails', '>= 3.2'

in app/assets/stylesheets I have application.scss with:

@import "bootstrap-sprockets";
@import "bootstrap";

and in assets/javascript I have application.js with:

//= require jquery
//= require jquery_ujs
//= require bootstrap-sprockets
//= require_tree .

1 Answers1

0

Please, follow these instructions:

Include following gems in your Gemfile

gem 'twitter-bootstrap-rails', git: 'git://github.com/seyhunak/twitter-bootstrap-rails.git'
gem 'therubyracer'
gem 'less-rails'

Run the following commands:

bundle
rails g bootstrap:install less

Reference: https://github.com/seyhunak/twitter-bootstrap-rails

Ahsan Ellahi
  • 336
  • 2
  • 6
  • It gave me a lot of erros when running that – Luis Amaro Mar 07 '16 at 19:09
  • bundle gave me a big error report: including this "Errno::ENOENT No such file or directory - git clone "git://github.com/seyhunak/twitter-bootstrap-rails.git" " – Luis Amaro Mar 07 '16 at 19:14
  • Just include this in your `Gemfile` and tell me if it works. `gem 'twitter-bootstrap-rails', :git => 'git://github.com/seyhunak/twitter-bootstrap-rails.git'` – Ahsan Ellahi Mar 07 '16 at 19:16
  • now it gave me this : "Errno::ENOENT: No such file or directory - git clone "git://github.com/seyhunak/twitter-bootstrap-rails.git" "C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/cache/bundler/git/twitter-bootstrap-rails-6259dce4168c7878cbf2edf620aa1d219f790c05" --bare --no-hardlinks --quiet" – Luis Amaro Mar 07 '16 at 19:18
  • I am using this gem in `ruby -v 1.9.3`. And it is working. – Ahsan Ellahi Mar 07 '16 at 19:20
  • could it be a problem of my installation of ruby? – Luis Amaro Mar 07 '16 at 21:13
  • May be, this gem is not compatible with latest ruby version. – Ahsan Ellahi Mar 08 '16 at 05:12