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.

Changeset [e3d8331c5b543ea7ea2024d05bd79526d11341c0] by José Valim

Revision e3d8331c5b543ea7ea2024d05bd79526d11341c0, committed by José Valim · November 18th, 2010 @ 07:22 PM

Revert "Remove deprecated form_for with strings or symbols"

This code was not deprecated. What was deprecated is the following:

form_for(:foo, @foo)

Which now should be rewritten as:

form_for(@foo, :as => :foo)

The following format is valid:

form_for(:foo)

This reverts commit be797750e6ce866ea08307f63bf35304a965c8d4.
https://github.com/rails/rails/commit/e3d8331c5b543ea7ea2024d05bd79...

4 changed files

  • M actionpack/lib/action_view/helpers/form_helper.rb
  • M actionpack/test/template/erb/form_for_test.rb
  • M actionpack/test/template/erb/helper.rb
  • M actionpack/test/template/form_helper_test.rb