<!DOCTYPE html>
<html>
<head>
  <title>StockAid</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
</head>
<body>
  <div class="container-fluid">
    <div class="row">
      <div class="col-xs-12">
        <%= render partial: "common/navbar", locals: { active: @active_tab } %>
      </div>
    </div>

    <%= render partial: "common/flash" %>

    <div class="row">
      <div class="col-xs-12">
        <%= yield %>
      </div>
    </div>
  </div>
</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <title>StockAid</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
</head>
<body class="<%= controller.controller_name %> <%= controller.action_name %>">
  <div class="container-fluid">
    <div class="row">
      <div class="col-xs-12">
        <%= render partial: "common/navbar", locals: { active: @active_tab } %>
      </div>
    </div>

    <%= render partial: "common/flash" %>

    <div class="row">
      <div class="col-xs-12">
        <%= yield %>
      </div>
    </div>
  </div>
</body>
</html>

Add some classes to help identify controllers and actions
Add some classes to help identify controllers and actions

This is intended to prevent JS from running on pages
it doesn't belong.