title: Bootstrap - Navbar Collapse menu not displaying
body: <p>My navbar does not collapse correctly. When the window is made smaller, the navbar disappears completely and the replacement accordion menu does not get displayed. Ideas?</p>
  
  <pre><code>&lt;section id='mainnavbar'&gt;
      &lt;div class="navbar"&gt;
  
          &lt;!-- Header --&gt;
          &lt;div class="navbar-header"&gt;
              &lt;button type="button" class="navbar-toggle collapsed"  data-toggle="collapse" data-target="#mainnavbar-link"&gt;
                  &lt;span class="sr-only"&gt;Toggle navigation&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
              &lt;/button&gt;
              &lt;a class="navbar-brand" href=&lt;%= root_path %&gt;  &gt;
                  &lt;!-- &lt;%= t('company_name') %&gt; --&gt;
                          &lt;%= render_logo %&gt;
              &lt;/a&gt;
          &lt;/div&gt;
          &lt;!-- Navbar Links --&gt;
          &lt;div id='mainnavbar-link' class="pull-right collapse navbar-collapse"&gt;      
                      &lt;ul class="nav navbar-nav"&gt;
                          &lt;% Page.roots.menu.each do |menu_item| %&gt;
                                  &lt;%= render partial: 'shared/nav/nav_pages_item', locals: {:menu_item =&gt; menu_item} %&gt;
                          &lt;%end%&gt;
                      &lt;/ul&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/section&gt;
  </code></pre>