Book Image

Bootstrap for Rails

By : Syed F Rahman
Book Image

Bootstrap for Rails

By: Syed F Rahman

Overview of this book

Table of Contents (18 chapters)
Bootstrap for Rails
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 1. Introducing Web Application Development in Rails

Presenting your application in the best possible way has been the most important factor for every web developer for ages. In this mobile-first generation, we are forced to go with the wind and make our application compatible with Mobiles, Tables, PCs, and every possible display on Earth.

Bootstrap is the one stop solution for all woes that developers have been facing. It creates beautiful responsive designs without any extra efforts and without any advanced CSS knowledge. It is a true boon for every developer.

In this chapter, and throughout the book, we will be focusing on how to beautify our Rails applications through the help of Bootstrap. In this chapter, we will create a basic Todo application with Rails. We will explore the folder structure of a Rails application and analyze which folders are important for templating a Rails Application. This will be helpful if you want to quickly revisit Rails concepts.

We will also see how to create views, link them, and also style them. The styling in this chapter will be done traditionally through the application's default CSS files. Finally, we will discuss how we can speed up the designing process using Bootstrap.

In short, we will cover the following topics:

  • Why Bootstrap with Rails?

  • Setting up a Todo Application in Rails

  • Analyzing folder structure of a Rails application

  • Creating views

  • Styling views using CSS

  • Challenges in traditionally styling a Rails Application