title: Bootstrap Rails, adding pagination to content index
body: <p>I have this listing automatically generated by Rails. It lists the contents of my Database, and I want to Bootstrap it, adding pagination and some nice CSS.</p>
  
  <pre><code>&lt;p id="notice"&gt;&lt;%= notice %&gt;&lt;/p&gt;
  
  &lt;h1&gt;Listing Posts&lt;/h1&gt;
  
  &lt;table&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;th&gt;Name&lt;/th&gt;
        &lt;th&gt;Title&lt;/th&gt;
        &lt;th&gt;Content&lt;/th&gt;
        &lt;th colspan="3"&gt;&lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
  
    &lt;tbody&gt;
      &lt;% @posts.each do |post| %&gt;
        &lt;tr&gt;
          &lt;td&gt;&lt;%= post.name %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= post.title %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= post.content %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= link_to 'Show', post %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= link_to 'Edit', edit_post_path(post) %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= link_to 'Destroy', post, method: :delete, data: { confirm: 'Are you sure?' } %&gt;&lt;/td&gt;
        &lt;/tr&gt;
      &lt;% end %&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;
  
  &lt;br&gt;
  
  &lt;%= link_to 'New Post', new_post_path %&gt;
  </code></pre>
  
  <p>This form appears in index.html.erb in the generated controller.</p>
  
  <p>What is the fastest way to add some CSS on this kind of generated file? I already imported Bootstrap in the corresponding .scss file but is it really necessary to manually define bootstrap classes everywhere?</p>
  
  <p>Can't I trick with some nice gem?</p>