Skip to content

Instantly share code, notes, and snippets.

@CJYate
Created January 16, 2015 13:06
Show Gist options
  • Save CJYate/23183647e23386d4800f to your computer and use it in GitHub Desktop.
Save CJYate/23183647e23386d4800f to your computer and use it in GitHub Desktop.
Bootstrap-sprockets.js can't be found
@import "bootstrap-sprockets";
@import "bootstrap";
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require bootstrap-sprockets
//= require_tree .
gem 'autoprefixer-rails', '~> 5.0.0'
gem 'bootstrap-sass', '~> 3.3.1'
rvm use 2.1.5@rails415test --create
gem install rails --version 4.1.5
rm -rf test_app
rails new test_app
cp bootstrapApplication.css test_app/app/assets/stylesheets/application.css.scss
cp bootstrapApplication.js test_app/app/assets/javascripts/application.js
rm test_app/app/assets/stylesheets/application.css
cat bootstrapstuff >> test_app/Gemfile
cd test_app/
bundle install
rails g scaffold hello msg:string
rake db:migrate
bundle install
rails s
# in browser or another shell:
# wget 0.0.0.0:3000/hellos
rvm install 2.1.5
rvm 2.1.5
rvm gemset create refineryEdgeTest
gem install rails --version 4.1.5
gem install execjs
rm -rf refinery_app
rails new refinery_app -m http://refinerycms.com/t/edge
cp bootstrapApplication.css refinery_app/app/assets/stylesheets/application.css.scss
cp bootstrapApplication.js refinery_app/app/assets/javascripts/application.js
rm refinery_app/app/assets/stylesheets/application.css
cat bootstrapstuff >> refinery_app/Gemfile
cd refinery_app/
bundle install
rails g scaffold hello msg:string
rake db:migrate
bundle install
rails s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment