Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #11391 (new defect)

Opened 2 months ago

Last modified 2 months ago

[PATCH] select should respect default options :index => nil set in form_for or fields_for

Reported by: kamal Assigned to: core
Priority: normal Milestone: 2.x
Component: ActionPack Version: edge
Severity: normal Keywords: unverified
Cc:

Description

This patch makes the FormOptionHelper helpers like select, collection_select, country_select and time_zone_select respect the default options set in forms_for or fields_for. Most commonly used to set :index => nil.

Attachments

form_option_helper_should_respect_default_options.patch (16.6 kB) - added by kamal on 03/20/08 17:21:50.
patch with tests

Change History

03/20/08 17:21:50 changed by kamal

  • attachment form_option_helper_should_respect_default_options.patch added.

patch with tests

03/26/08 01:24:15 changed by kamal

  • keywords changed from select index nil multi model ryan bates railscasts fields_for form_for to unverified.