This project is archived and is in readonly mode.
Improve HTML generated by Scaffold
Reported by Emili Parreño | May 8th, 2009 @ 07:49 AM | in 2.x
This patch improves the HTML code generated by scaffold including all elements within <p></p>. This markup is HTML Strict valid.
for example, in show.html.erb the actual scaffold generates
<%= link_to 'Back', posts_path %>
and with this patch, the result is
<p><%= link_to 'Back', posts_path %></p>
This patch affects: index.html.erb, show.html.erb, edit.html.erb and new.html.erb
Comments and changes to this ticket
-
Daniel Schierbeck May 8th, 2009 @ 01:18 PM
Yaroslav: I disagree; this seems like perfectly correct use of the paragraph element type.
+1 from me; I think it's a good idea to use semantically correct XHTML.
-
Ken Collins May 8th, 2009 @ 02:24 PM
DIV is way more appropriate. I hate seeing
tags for block level element usage.
-
CancelProfileIsBroken May 8th, 2009 @ 03:13 PM
- State changed from new to duplicate
See ticket #1760 where these issues are already being discussed.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>