mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
263764d13a
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) |
||
---|---|---|
.. | ||
rails | ||
rails.rb |