Skip to content

Commit

Permalink
Rails layouts, error pages, and public/index now use HTML5.
Browse files Browse the repository at this point in the history
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

Signed-off-by: Joshua Peek <josh@joshpeek.com>
  • Loading branch information
Dan Croak authored and josh committed Jan 5, 2010
1 parent 5c527c2 commit 38f6697
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 5 deletions.
@@ -1,7 +1,6 @@
<!DOCTYPE html>
<html>
<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>
Expand Down
@@ -1,7 +1,6 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>The page you were looking for doesn't exist (404)</title>
<style type="text/css">
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
Expand Down
@@ -1,7 +1,6 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>The change you wanted was rejected (422)</title>
<style type="text/css">
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
Expand Down
@@ -1,7 +1,6 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>We're sorry, but something went wrong (500)</title>
<style type="text/css">
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
Expand Down
@@ -1,7 +1,6 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Ruby on Rails: Welcome aboard</title>
<style type="text/css" media="screen">
body {
Expand Down

2 comments on commit 38f6697

@jpartogi
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kewl. HTML5 supports. Yay

@jerome
Copy link

@jerome jerome commented on 38f6697 Jan 7, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HTML 5 but not XHTML 5.
And while rails helpers still generate xhtml tags (self closing img tag for instance), old gecko-based browsers won't display anything if content isn't served as application/xhtml+xml

Please sign in to comment.