From 552900176f4a9005b809b0c92c1dda0d9d1cd79f Mon Sep 17 00:00:00 2001 From: Dan Croak Date: Tue, 5 Jan 2010 10:24:08 -0500 Subject: [PATCH] Rails layouts, error pages, and public/index now use HTML5. The specification allows the character encoding meta tag to be removed if character encoding is set at the transport level (Content-Type), which Rails is doing. http://dev.w3.org/html5/html4-differences/#character-encoding --- .../erb/scaffold/templates/layout.html.erb | 1 - .../generators/rails/app/templates/public/404.html | 1 - .../generators/rails/app/templates/public/422.html | 1 - .../generators/rails/app/templates/public/500.html | 1 - .../rails/app/templates/public/index.html | 1 - 5 files changed, 0 insertions(+), 5 deletions(-) diff --git a/railties/lib/rails/generators/erb/scaffold/templates/layout.html.erb b/railties/lib/rails/generators/erb/scaffold/templates/layout.html.erb index 51c4ad0..7aa049f 100644 --- a/railties/lib/rails/generators/erb/scaffold/templates/layout.html.erb +++ b/railties/lib/rails/generators/erb/scaffold/templates/layout.html.erb @@ -1,7 +1,6 @@ - <%= controller_class_name %>: <%%= controller.action_name %> <%%= stylesheet_link_tag 'scaffold' %> diff --git a/railties/lib/rails/generators/rails/app/templates/public/404.html b/railties/lib/rails/generators/rails/app/templates/public/404.html index 88ee108..9a48320 100644 --- a/railties/lib/rails/generators/rails/app/templates/public/404.html +++ b/railties/lib/rails/generators/rails/app/templates/public/404.html @@ -1,7 +1,6 @@ - The page you were looking for doesn't exist (404)