This project is archived and is in readonly mode.

#2624 ✓duplicate
Emili Parreño

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

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>

Attachments

Pages