Styling the Login and Registration Forms

Bootstrap doesn’t do much to naked elements in our markup. It sets the default font and makes a few color changes, but most of what Bootstrap does requires us to add classes to certain elements in a particular way. This means we’ll need access to the markup before we get started.

You might recall that we didn’t write any markup for our login screens—they were all provided by Devise. Devise is packaged as a Rails Engine,[26] so the gem itself contains the views. But it also contains a generator called devise:views that will extract those views into our application, allowing us to modify them.

 $ ​​bundle​​ ​​exec​​ ​​rails​​ ​​generate​​ ​​devise:views
  invoke Devise::Generators::SharedViewsGenerator ...

Get Rails, Angular, Postgres, and Bootstrap now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.