<nav class="navbar navbar-default" role="navigation">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#feature-flags-nav">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>

      <%= link_to "Detour", root_path, class: "navbar-brand" %>
    </div>

    <div class="collapse navbar-collapse navbar-right" id="feature-flags-nav">
      <ul class="nav navbar-nav">
        <li><%= link_to "Groups", groups_path %></li>
        <li class="dropdown">
          <a href="javascript:void(0)" data-toggle="dropdown">Feature Flags <b class="caret"></b></a>

          <ul class="dropdown-menu">
            <% Detour.config.flaggable_types.each do |type| %>
              <li><%= link_to "#{type} Flags", flags_path(type.tableize) %></li>
            <% end %>
          </ul>
        </li>
      </ul>
    </div>
  </div>
</nav>

<nav class="navbar navbar-default" role="navigation">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#feature-flags-nav">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>

      <%= link_to "Detour", root_path, class: "navbar-brand" %>
    </div>

    <div class="collapse navbar-collapse navbar-right" id="feature-flags-nav">
      <ul class="nav navbar-nav">
        <li><%= link_to "Groups", groups_path %></li>
        <li class="dropdown">
          <a href="javascript:void(0)" data-toggle="dropdown">Feature Flags <b class="caret"></b></a>

          <ul class="dropdown-menu">
            <% Detour.config.flaggable_types.each do |type| %>
              <li><%= link_to "#{type} Flags", flags_path(type.constantize.table_name) %></li>
            <% end %>
          </ul>
        </li>
      </ul>
    </div>
  </div>
</nav>

Use flaggable type table_name for flag routes
Use flaggable type table_name for flag routes