diff options
author | Sıtkı Bağdat <sbagdat@gmail.com> | 2013-06-17 03:22:31 +0300 |
---|---|---|
committer | Sıtkı Bağdat <sbagdat@gmail.com> | 2013-06-17 19:59:02 +0300 |
commit | f0e4254bfa1443c3d51af117b925a02b88076f58 (patch) | |
tree | c9d7cfc7310ae13624bdb4d377b959ac1c5ca16f /railties/lib | |
parent | ce13dc28e47d739545da5732a2b23903c9b7ed84 (diff) | |
download | rails-f0e4254bfa1443c3d51af117b925a02b88076f58.tar.gz rails-f0e4254bfa1443c3d51af117b925a02b88076f58.tar.bz2 rails-f0e4254bfa1443c3d51af117b925a02b88076f58.zip |
Use Colspan in th Tags
Is it more suitable that using ```<th colspan="3">``` instead of three empty ```<th>```? It is simple, but what i am missing about it?
Change repetitive th tags to use colspan attribute
Update CHANGELOG.md
Update CHANGELOG.md
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/erb/scaffold/templates/index.html.erb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb b/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb index 9d778642f2..814d6fdb0e 100644 --- a/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb +++ b/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb @@ -6,9 +6,7 @@ <% attributes.reject(&:password_digest?).each do |attribute| -%> <th><%= attribute.human_name %></th> <% end -%> - <th></th> - <th></th> - <th></th> + <th colspan="3"></th> </tr> </thead> |