Skip to content

Instantly share code, notes, and snippets.

@lulezi
Last active December 11, 2015 14:09
Show Gist options
  • Save lulezi/4612352 to your computer and use it in GitHub Desktop.
Save lulezi/4612352 to your computer and use it in GitHub Desktop.
guide to bootstrap an ember-rails app

guide to bootstrap an ember-rails app

rails new App

add the following lines to the Gemfile:

gem 'ember-rails', github: 'emberjs/ember-rails'
gem 'active_model_serializers', github: 'rails-api/active_model_serializers'
gem 'thin'

bundle

rails g ember:bootstrap

Copy ember.js, ember-data.js and handlebars.js to vendor/assets/javascripts

thin start

use twitter bootstrap

Instructions are from anjilab/bootstrap-rails

add the following line to Gemfile

gem 'anjlab-bootstrap-rails', :require => 'bootstrap-rails',
                              :git => 'git://github.com/anjlab/bootstrap-rails.git'

add the following line to app/assets/stylesheets/application.css

*= require twitter/bootstrap

add the following line to app/assets/javascripts/application.js

/= require twitter/bootstrap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment