There are around 5 tickets on Lighthouse (probably more) about
changing Rails scaffold. I would like to summarize the requests here,
so we can finally agree in a solution.
First of all, in Rails 3.0 generators will be customizable per
application. You will be able to throw your templates in lib/templates
and they will be picked on generation.
This enforces the point of view that Rails default scaffold should be
a starting point, not only for applications, but also for people who
are starting with Rails. This is important to know because we have to
ponder things like:
1) Should we put forms in a _form partial? On the same way this is the
"best practice", we are adding more code for people to grasp at the
Another proposed changes are:
2) Change forms to use <ol> and <li> instead of paragraphs;
3) Change show view to use definition list (<dl>), instead of
paragraphs and bold (http://www.w3schools.com/TAGS/tag_dl.asp);
4) Wrap footer links (Show and Back) in paragraphs.
5) Remove inline CSS from:
<p style="color: green"><%= flash[:notice %></p>
And wrap it around a html class.
What are your point of view for each item?