diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-06-07 21:35:01 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-06-07 21:35:01 +0000 |
commit | c7df5bd6ac256cf75631f8c59c1de1f96df02b17 (patch) | |
tree | 540eb0ff609ddbec455e24002ee2b78e79e123ff /actionpack/lib/action_view/helpers | |
parent | 5600776e309b9c84f0cc075391b6130d07d83cfd (diff) | |
download | rails-c7df5bd6ac256cf75631f8c59c1de1f96df02b17.tar.gz rails-c7df5bd6ac256cf75631f8c59c1de1f96df02b17.tar.bz2 rails-c7df5bd6ac256cf75631f8c59c1de1f96df02b17.zip |
More nested polymorphic url helper fixes. Closes #6432, references #8601.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6960 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_helper.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb index 1886c7ab15..b003b69bb1 100644 --- a/actionpack/lib/action_view/helpers/form_helper.rb +++ b/actionpack/lib/action_view/helpers/form_helper.rb @@ -166,13 +166,12 @@ module ActionView when Array object = record_or_name_or_array.last object_name = ActionController::RecordIdentifier.singular_class_name(object) - # apply_form_for_options!(object, options, *record_or_name_or_array) apply_form_for_options!(record_or_name_or_array, options) args.unshift object else object = record_or_name_or_array object_name = ActionController::RecordIdentifier.singular_class_name(object) - apply_form_for_options!([ object ], options) + apply_form_for_options!([object], options) args.unshift object end |