aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
diff options
context:
space:
mode:
authorNicholas Seckar <nseckar@gmail.com>2006-02-06 05:06:36 +0000
committerNicholas Seckar <nseckar@gmail.com>2006-02-06 05:06:36 +0000
commit7139e2a0e1c24788758ccd6131ba86243de84bf6 (patch)
treed849489ad5728d24e63debbae8f88d68f2e8e1cb /actionpack/test/template
parent796295dba6839bf417c19a2f41fe2a32d968367a (diff)
downloadrails-7139e2a0e1c24788758ccd6131ba86243de84bf6.tar.gz
rails-7139e2a0e1c24788758ccd6131ba86243de84bf6.tar.bz2
rails-7139e2a0e1c24788758ccd6131ba86243de84bf6.zip
Fix remote_form_for creates a non-ajax form. Closes #3741.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3545 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template')
-rw-r--r--actionpack/test/template/form_helper_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb
index 6cc4b50d67..a922584370 100644
--- a/actionpack/test/template/form_helper_test.rb
+++ b/actionpack/test/template/form_helper_test.rb
@@ -304,7 +304,7 @@ class FormHelperTest < Test::Unit::TestCase
end
expected =
- "<form action='http://www.example.com' method='post'>" +
+ %(<form action="http://www.example.com" onsubmit="new Ajax.Request('http://www.example.com', {asynchronous:true, evalScripts:true, parameters:Form.serialize(this)}); return false;" method="post">) +
"<label for='title'>Title:</label> <input name='post[title]' size='30' type='text' id='post_title' value='Hello World' /><br/>" +
"<label for='body'>Body:</label> <textarea name='post[body]' id='post_body' rows='20' cols='40'>Back to the hill and over it again!</textarea><br/>" +
"<label for='secret'>Secret:</label> <input name='post[secret]' checked='checked' type='checkbox' id='post_secret' value='1' />" +