This project is archived and is in readonly mode.

#68 ✓resolved
Kevin Glowacz

Form labels have wrong for attribute when an index is given

Reported by Kevin Glowacz | April 30th, 2008 @ 04:31 PM

The following does not create the correct label:

fields_for("author[post]", @post, :index => 1) do |f|
  f.label(:title)
  f.text_field(:title)
end

expect

get

Comments and changes to this ticket

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>

People watching this ticket

Pages