This project is archived and is in readonly mode.

#518 ✓resolved
Kevin Glowacz

index does not work on fields_for select

Reported by Kevin Glowacz | June 30th, 2008 @ 08:41 PM | in 2.x

fields_for :post, @post, :index => 1 do |f|
  f.select(:category, %w( abe <mus> hest))
end

currently does not add the index to the id and name.

This patch fixes and tests for it (including the other select methods)

It also adds tests to prove that f.select works with auto_index

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>

Attachments