using alternate layout depending on action

This commit is contained in:
Dan Buch
2011-08-09 07:03:28 -04:00
parent 391a4c186f
commit 9d42948abe
5 changed files with 39 additions and 8 deletions

View File

@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<title>My Pretty Website - <%= @title %></title>
<style type="text/css">
body {
background: #f99;
color: #222;
}
</style>
</head>
<body>
<%= yield %>
</body>
</html>

View File

@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>My Plain Website - <%= @title %></title>
</head>
<body>
<%= yield %>
</body>
</html>