aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-09-07 13:04:09 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-09-07 13:04:09 +0000
commit7b235f0213599c4c20966f89889baba3b8ad7006 (patch)
tree80350059581194dd95f2d6f40039121c65953b5c /actionpack/lib/action_view
parent7e3dc807df2193e7bb06b7125d0420d1b05278db (diff)
downloadrails-7b235f0213599c4c20966f89889baba3b8ad7006.tar.gz
rails-7b235f0213599c4c20966f89889baba3b8ad7006.tar.bz2
rails-7b235f0213599c4c20966f89889baba3b8ad7006.zip
Use this.href, not unexisting url
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2150 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r--actionpack/lib/action_view/helpers/url_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb
index 0b84b3311b..7ca1d0cd0b 100644
--- a/actionpack/lib/action_view/helpers/url_helper.rb
+++ b/actionpack/lib/action_view/helpers/url_helper.rb
@@ -266,7 +266,7 @@ module ActionView
end
def post_javascript_function
- "f = document.createElement('form'); document.body.appendChild(f); f.method = 'POST'; f.action = url; f.submit();"
+ "f = document.createElement('form'); document.body.appendChild(f); f.method = 'POST'; f.action = this.href; f.submit();"
end
# Processes the _html_options_ hash, converting the boolean