Topic: where do I put a DOCTYPE, I get it under rails own head

So I have a main admin controller, and it defaults to render list.rhtml

I place by DOCTYPE at the top like anyother DOCTYPE but it is putting it further down in the page with it's own DOCTYPE

<html>
<head>
  <title>Admin: index</title>
  <link href="/stylesheets/scaffold.css?1156799367" media="screen" rel="Stylesheet" type="text/css" />
</head>
<body>

<p style="color: green"></p>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>

Re: where do I put a DOCTYPE, I get it under rails own head

Are you using a layout for the admin section? You should also create a generic layout for the non-admin sections and place the doctype and other common view code into this layout. To do this, create a file at views/layouts/application.rhtml with something like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
  <title>Title</title>
</head>
<body>
<%= @content_for_layout %>
</body>
</html>

You can then take that common code out of the other files (like list.rhtml).

Railscasts - Free Ruby on Rails Screencasts

Re: where do I put a DOCTYPE, I get it under rails own head

Awesome! thank you ..