Loading

/app/views/layouts/applic

  1.   <nav class="navbar navbar-default">
  2.     <div class="container">
  3.       <div class="navbar-brand">
  4.         <%= link_to "Pin Board", root_path %>
  5.       </div>
  6.       <% if user_signed_in? %>
  7.         <ul class="nav navbar-nav navbar-right">
  8.           <li>
  9.             <%= link_to "New Pin", new_pin_path %>
  10.           </li>
  11.           <li>
  12.             <%= link_to "Account", edit_user_registration_path %>
  13.           </li>
  14.           <li>
  15.             <%= link_to "Sign Out", destroy_user_session_path, method: :delete %>
  16.           </li>
  17.         </ul>
  18.       <% else %>
  19.         <ul class="nav navbar-nav navbar-right">
  20.           <li>
  21.             <%= link_to "Sign Up", new_user_registration_path %>
  22.           </li>
  23.           <li>
  24.             <%= link_to "Sign In", new_user_session_path %>
  25.           </li>
  26.         </ul>
  27.       <% end %>
  28.     </div>
  29.   </nav>
  30.   <div class="container">
  31.     <% flash.each do |name, msg| %>
  32.       <%= content_tag :div, msg, class: "alert alert-info" %>
  33.     <% end %>
  34.     <%= yield %>
  35.   </div>
  36. </body>

Version history

Revision # Author Created at
pcbrvqrnd Anonymous 04 Aug 2018, 06:28:39 UTC Diff