rails/rails — pull request #7740 by BMorearty (2012-09-23 15:21:51+00:00)
Title: Removed sorting of attribute names in controller generator.

I believe when people use generators, they typically order the
parameters on the command line in an order that makes sense
to them. Sorting them in the generated code makes the order
seem more arbitrary to humans, even though it's less arbitrary
to computers. :-)

Example:

rails g scaffold Post title:string content:text

The human chose to put title before content. Sorted
attributes in the generated code work but don't match the
human's intent:

params.require(:posts).permit(:content, :title)