This project is archived and is in readonly mode.
![Marjan Krekoten' Marjan Krekoten'](https://entp-lh-avatar-production.s3.amazonaws.com/avatars/86902/large.jpg?AWSAccessKeyId=AKIAJ4QBZRZBVMOUBNZA&Expires=2014411406&Signature=a1nSmvM%2FFRXyElHZed9rpeZgtPA%3D)
[PATCH] Update scaffold_controller generator to use new respond_with syntax
Reported by Marjan Krekoten' | September 18th, 2010 @ 07:10 PM
Currently generated by scaffold and scaffold_controller generators controllers use respond_to syntax. I've attached patch that switches them to use new respond_with syntax. Also I've attached 2nd patch that removes some code duplication from generated code.
What do you think about this?
Comments and changes to this ticket
-
José Valim September 18th, 2010 @ 07:14 PM
- State changed from new to invalid
- Importance changed from to Low
We already had other discussion like this in LH and the mailing list. Scaffold is a learning tool and respond_to is clearer than respond_with.
-
-
-
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>