aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/erb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-04-06 00:12:28 +0200
committerJosé Valim <jose.valim@gmail.com>2010-04-06 00:18:35 +0200
commitea2c5fa8046e2f953b366adc94f0610ccfea0828 (patch)
treeb767cb29756b0cbb701749643d8d547d5c687271 /railties/lib/rails/generators/erb
parent4eab983b955fe17cf02c6fe96cab1c8a309cd606 (diff)
downloadrails-ea2c5fa8046e2f953b366adc94f0610ccfea0828.tar.gz
rails-ea2c5fa8046e2f953b366adc94f0610ccfea0828.tar.bz2
rails-ea2c5fa8046e2f953b366adc94f0610ccfea0828.zip
A new application now comes with a layout and a stylesheet.
Diffstat (limited to 'railties/lib/rails/generators/erb')
-rw-r--r--railties/lib/rails/generators/erb/scaffold/scaffold_generator.rb6
-rw-r--r--railties/lib/rails/generators/erb/scaffold/templates/layout.html.erb17
2 files changed, 0 insertions, 23 deletions
diff --git a/railties/lib/rails/generators/erb/scaffold/scaffold_generator.rb b/railties/lib/rails/generators/erb/scaffold/scaffold_generator.rb
index f607e580a5..ee591d85b3 100644
--- a/railties/lib/rails/generators/erb/scaffold/scaffold_generator.rb
+++ b/railties/lib/rails/generators/erb/scaffold/scaffold_generator.rb
@@ -25,12 +25,6 @@ module Erb
end
end
- def copy_layout_file
- return unless options[:layout]
- template filename_with_extensions(:layout),
- File.join("app/views/layouts", controller_class_path, filename_with_extensions(controller_file_name))
- end
-
protected
def available_views
diff --git a/railties/lib/rails/generators/erb/scaffold/templates/layout.html.erb b/railties/lib/rails/generators/erb/scaffold/templates/layout.html.erb
deleted file mode 100644
index 3f64be0c45..0000000000
--- a/railties/lib/rails/generators/erb/scaffold/templates/layout.html.erb
+++ /dev/null
@@ -1,17 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title><%= controller_class_name %>: <%%= controller.action_name %></title>
- <%%= stylesheet_link_tag 'scaffold' %>
- <%%= javascript_include_tag :defaults %>
- <%%= csrf_meta_tag %>
-</head>
-<body>
-
-<p class="notice"><%%= notice %></p>
-<p class="alert"><%%= alert %></p>
-
-<%%= yield %>
-
-</body>
-</html>