Book Image

Shopify Application Development

By : Michael Larkin
Book Image

Shopify Application Development

By: Michael Larkin

Overview of this book

Table of Contents (12 chapters)

Installing Twitter Bootstrap


The official website is http://getbootstrap.com and it describes Bootstrap as:

"The most popular front-end framework for developing responsive, mobile first projects on the web."

What this means is that we can use Bootstrap to easily allow our web pages to scale based on the device being used. We no longer have to worry about creating separate view files for phones, tablets, and browsers. The scaling is automatically handled using CSS and JavaScript. Bootstrap also includes helpful CSS styles for making buttons stand out, formatting error messages correctly, and a myriad of other common tasks.

Now, it's time to install Bootstrap using some helpful Gems. Add the following lines below the line gem 'sass-rails', '~> 4.0.0' in your Gemfile::

gem "execjs"
gem "twitter-bootstrap-rails"
gem "bootstrap-sass"

Tip

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you...