View Introduction
First of all we’re going to create a layout for our site. Nothing too fancy. We start with a file called application.html.erb in the app/views/layouts folder. What? It’s not there? Well create it then! While you’re at it, make it look like this:
app/views/layouts/application.html.erb
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <%= javascript_include_tag :defaults %> <%= stylesheet_link_tag "default" %> <title>The Forums</title> </head> <body> <%= yield %> </body> </html>
