Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

[PATCH] Update scaffold_controller generator to use new respond_with syntax

#5656

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?

Reported by Marjan Krekoten' · September 18th, 2010 @ 07:10 PM

State: invalid
Milestone: none
Assigned to: José Valim José Valim
Importance: Low

Activity

  1. José Valim
    José Valim
    • 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.

    September 18th, 2010 @ 07:14 PM

  2. Marjan Krekoten'
  3. Jeff Kreeftmeijer
    Jeff Kreeftmeijer
    • Tag cleared.

    Automatic cleanup of spam.

    October 19th, 2010 @ 07:07 AM

  4. bingbing