<!DOCTYPE html>
<html>
  <head>
    <title>WritingProjectTracker</title>
    <%= csrf_meta_tags %>

    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
  </head>
  <body>

  <%= render "layouts/navbar" %>

  <div class="container container-width">

          <% flash.each do |name, msg| -%>
            <%= content_tag :div, msg, class: "flash #{name}" %>
          <% end -%>

          

    <%= yield %>
  </div>
  </body>
</html>

<!DOCTYPE html>
<html>
  <head>
    <title>WritingProjectTracker</title>
    <%= csrf_meta_tags %>

    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
  </head>
  <body data-userid="<%= current_user.id if user_signed_in? %>">

  <%= render "layouts/navbar" %>

  <div class="container container-width">

          <% flash.each do |name, msg| -%>
            <%= content_tag :div, msg, class: "flash #{name}" %>
          <% end -%>

          

    <%= yield %>
  </div>
  </body>
</html>

Add current user id to body data tag
Add current user id to body data tag
