aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/generators/erb/scaffold/templates/layout.html.erb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2009-07-01 18:33:22 +0200
committerJosé Valim <jose.valim@gmail.com>2009-07-02 10:27:39 +0200
commit80cd16372ce1776e5d6af87b2dc7be8205fa1513 (patch)
treef2dd35f80c6bc0f050818fe6decb30c8b2e2d3e4 /railties/lib/generators/erb/scaffold/templates/layout.html.erb
parent9541977e049d236564f34cf58660b61e154ccb32 (diff)
downloadrails-80cd16372ce1776e5d6af87b2dc7be8205fa1513.tar.gz
rails-80cd16372ce1776e5d6af87b2dc7be8205fa1513.tar.bz2
rails-80cd16372ce1776e5d6af87b2dc7be8205fa1513.zip
Added scaffold views to scaffold controller.
Diffstat (limited to 'railties/lib/generators/erb/scaffold/templates/layout.html.erb')
-rw-r--r--railties/lib/generators/erb/scaffold/templates/layout.html.erb17
1 files changed, 17 insertions, 0 deletions
diff --git a/railties/lib/generators/erb/scaffold/templates/layout.html.erb b/railties/lib/generators/erb/scaffold/templates/layout.html.erb
new file mode 100644
index 0000000000..ebc97f8130
--- /dev/null
+++ b/railties/lib/generators/erb/scaffold/templates/layout.html.erb
@@ -0,0 +1,17 @@
+<!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" xml:lang="en" lang="en">
+<head>
+ <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
+ <title><%= controller_class_name %>: <%%= controller.action_name %></title>
+ <%%= stylesheet_link_tag 'scaffold' %>
+</head>
+<body>
+
+<p style="color: green"><%%= flash[:notice] %></p>
+
+<%%= yield %>
+
+</body>
+</html>