Dependencies:
/build directory to the Rails app directory /public/yui/2.5.1/.
application.html.erb layout/app/views/layouts/application.html.erb
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<title>archive | <%= yield(:head_title) || "#{h controller.controller_name.capitalize}: #{controller.action_name}" %></title>
<%= javascript_include_tag :defaults %>
<%= javascript_include_tag '/yui/2.5.1/build/yahoo-dom-event/yahoo-dom-event' %>
<%= stylesheet_link_tag '/yui/2.5.1/build/reset-fonts-grids/reset-fonts-grids' %>
<%= stylesheet_link_tag 'application' %>
<%= yield :head %>
</head>
<body class="yui-skin-sam">
<div id="custom-doc">
<%= render :partial => "layouts/header" %>
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<%= display_standard_flashes %>
<%= yield %>
</div>
</div>
</div>
<%= render :partial => "layouts/footer" %>
</div>
<%= yield :js %>
</body>
</html>
You also need to add two partials _header.html.erb and _footer.html.erb
/app/views/layouts/_header.html.erb
<div id="hd">Header goes here</div>
/app/views/layouts/_footer.html.erb
<div id="ft">© <%= Date.today.year %> Footer goes here</div>