My default layout in Rails projects
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/ DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title><%= @page_title %></title> <%= stylesheet_link_tag "main" %> <%= javascript_include_tag "prototype" %> <%= javascript_include_tag "scriptaculous" %> <%= javascript_include_tag "general" %> <!--[if lt IE 7.]> <script defer type="text/javascript" src="/javascripts/pngfix.js"></script> <![endif]--> </head> <body class="<%= @body_class %>"> <div id="container"> <%= @content_for_layout %> </div> </body> </html>
pngfix.js is available here.