diff options
author | Nicholas Seckar <nseckar@gmail.com> | 2006-02-11 23:29:53 +0000 |
---|---|---|
committer | Nicholas Seckar <nseckar@gmail.com> | 2006-02-11 23:29:53 +0000 |
commit | 344ae8326a51beabbc5b3f4f851c3d65ec789e2d (patch) | |
tree | 9e017c6dac888f0ad5d76d7b16bf34691816cdd7 /actionpack/lib/action_view/helpers/prototype_helper.rb | |
parent | 91cdd59b12d4101c3dc1130cf0f2b4543a14eb79 (diff) | |
download | rails-344ae8326a51beabbc5b3f4f851c3d65ec789e2d.tar.gz rails-344ae8326a51beabbc5b3f4f851c3d65ec789e2d.tar.bz2 rails-344ae8326a51beabbc5b3f4f851c3d65ec789e2d.zip |
Remove over-engineered form_for code for a leaner implementation.
Document form_for's :html option.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3572 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/helpers/prototype_helper.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/prototype_helper.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/prototype_helper.rb b/actionpack/lib/action_view/helpers/prototype_helper.rb index 523adb3288..96f065cc11 100644 --- a/actionpack/lib/action_view/helpers/prototype_helper.rb +++ b/actionpack/lib/action_view/helpers/prototype_helper.rb @@ -172,7 +172,9 @@ module ActionView # Works like form_remote_tag, but uses form_for semantics. def remote_form_for(object_name, object, options = {}, &proc) - form_for(object_name, object, options.merge(:form_tag_selector => :form_remote_tag), &proc) + concat form_remote_tag(options), proc.binding + fields_for(object_name, object, options, &proc) + concat '</form>', proc.binding end alias_method :form_remote_for, :remote_form_for |