diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-07-10 11:34:39 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-07-10 11:34:39 -0500 |
commit | 01d92021e69f54def1ec8103b2b99f907dd88ec4 (patch) | |
tree | 46f4869c1263d0efaf96084ebdc7d2f7905b7937 /railties/lib/rails_generator/generators/components | |
parent | d60d7edce462f4602bfc9996689087a235b034c9 (diff) | |
download | rails-01d92021e69f54def1ec8103b2b99f907dd88ec4.tar.gz rails-01d92021e69f54def1ec8103b2b99f907dd88ec4.tar.bz2 rails-01d92021e69f54def1ec8103b2b99f907dd88ec4.zip |
Switch scaffolding templates to HTML 5 doctype
Diffstat (limited to 'railties/lib/rails_generator/generators/components')
-rw-r--r-- | railties/lib/rails_generator/generators/components/scaffold/templates/layout.html.erb | 8 | ||||
-rw-r--r-- | railties/lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb | 3 |
2 files changed, 6 insertions, 5 deletions
diff --git a/railties/lib/rails_generator/generators/components/scaffold/templates/layout.html.erb b/railties/lib/rails_generator/generators/components/scaffold/templates/layout.html.erb index ebc97f8130..aacfbe4a8f 100644 --- a/railties/lib/rails_generator/generators/components/scaffold/templates/layout.html.erb +++ b/railties/lib/rails_generator/generators/components/scaffold/templates/layout.html.erb @@ -1,9 +1,7 @@ -<!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"> +<!DOCTYPE html> +<html> <head> - <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> + <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title><%= controller_class_name %>: <%%= controller.action_name %></title> <%%= stylesheet_link_tag 'scaffold' %> </head> diff --git a/railties/lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb b/railties/lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb index 2e603d5b4a..69beb388db 100644 --- a/railties/lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb +++ b/railties/lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb @@ -5,6 +5,9 @@ <% for attribute in attributes -%> <th><%= attribute.column.human_name %></th> <% end -%> + <th></th> + <th></th> + <th></th> </tr> <%% @<%= plural_name %>.each do |<%= singular_name %>| %> |