<!DOCTYPE html>
<html>
<head>
  <title>Imdbc</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
</head>
<body>
  <p class="notice"><%= notice %></p>
  <p class="alert"><%= alert %></p>

<%= yield %>

</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <title>Imdbc</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
</head>
<body>
  <p class="notice"><%= notice %></p>
  <p class="alert"><%= alert %></p>

  <% if user_signed_in? %>
    <%= link_to "logout", destroy_user_session_path, :method => 'delete' %>
  <% else %>
    <%= link_to "login", new_user_session_path %>
  <% end %>

<%= yield %>

</body>
</html>

Update layout with if conditional
Update layout with if conditional
