diff options
author | Brian Morearty <brian@morearty.org> | 2012-09-23 08:19:02 -0700 |
---|---|---|
committer | Brian Morearty <brian@morearty.org> | 2012-09-23 08:19:02 -0700 |
commit | 263764d13a9cd4eae60d1fa9e50af57f506f3dd4 (patch) | |
tree | ebbd6b6aac279c7d474dc18feb8fa6ce9898ae12 /actionpack/test/fixtures/alternate_helpers | |
parent | d9b873c4289c1e0dc1bf1d644fa827b600fb0893 (diff) | |
download | rails-263764d13a9cd4eae60d1fa9e50af57f506f3dd4.tar.gz rails-263764d13a9cd4eae60d1fa9e50af57f506f3dd4.tar.bz2 rails-263764d13a9cd4eae60d1fa9e50af57f506f3dd4.zip |
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)
Diffstat (limited to 'actionpack/test/fixtures/alternate_helpers')
0 files changed, 0 insertions, 0 deletions