<!DOCTYPE html>
<html>
<head>
  <title><%= yield(:title) %></title>
  <%= stylesheet_link_tag :all %>
  <%= javascript_include_tag :defaults %>
  <%= stylesheet_link_tag 'scaffold' %>
  <%= stylesheet_link_tag 'application' %>
  <%= yield(:head) %>
  <%= csrf_meta_tag %>
</head>
<body>
<% flash.each do |key, msg| %>
  <%= content_tag :div, msg, :id => key %>
<% end %>
 
<h1><%= yield (:title) %></h1>
<%= yield %>

</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <title><%= yield(:title) %></title>
  <%= stylesheet_link_tag 'scaffold' %>
  <%= stylesheet_link_tag 'application' %>
  <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    
  <%= yield(:head) %>
  <%= csrf_meta_tag %>
</head>
<body>
<% flash.each do |key, msg| %>
  <%= content_tag :div, msg, :id => key %>
<% end %>
 
<h1><%= yield :title %></h1>
<%= yield %>

</body>
</html>

Clean up application layout template
Clean up application layout template

- Don't include all the css files, resulting in duplicates
- Don't include the default js files, which messes up jquery
- Include jquery
