-
create rails app with
rails new yourapp --database=postgresql -T -
create Github repo,
cdinto your app,git init,git remote add origin [email protected]:username/yourapp.git,git commit -am,git push -u origin master -
add to Gemfile:
gem 'jazz_hands', github: 'nixme/jazz_hands', branch: 'bring-your-own-debugger' gem 'pry-byebug' gem 'better_errors' end``` `gem 'bootstrap-sass', '~> 3.3.6'` -
set up bootstrap:
$ mv app/assets/stylesheets/application.css app/assets/stylesheets/application.scssadd the following to
app/assets/stylesheets/application.scss:@import "bootstrap";``` add the following to `app/assets/javascripts/application.js`: ```//= require jquery //= require bootstrap-sprockets``` (remove `*= require_self`) -
wipe out turbolinks:
remove 'turbolinks' from your Gemfile
remove the
//= require turbolinksline from your app/assets/javascripts/application.js fileremove the two
"data-turbolinks-track" => truehash key/value pairs from your app/views/layouts/application.html.erb -
bundle install -
Start building!
Last active
February 29, 2016 23:51
-
-
Save cadyherron/17d68369ace6f77b91e2 to your computer and use it in GitHub Desktop.
Steps to create a basic Rails app with Bootstrap
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment