aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorStephen St. Martin <kuprishuz@gmail.com>2010-01-31 14:03:37 -0500
committerJoshua Peek <josh@joshpeek.com>2010-01-31 13:46:33 -0600
commita9e89e82b67f721fe68ca58a2d371b666cdb7441 (patch)
treecf343277691b2b4e239b186a1935ecc18080cea8 /actionpack/lib
parenta3349f845ffa2415e12ac9e26b4f7300d7edd3ef (diff)
downloadrails-a9e89e82b67f721fe68ca58a2d371b666cdb7441.tar.gz
rails-a9e89e82b67f721fe68ca58a2d371b666cdb7441.tar.bz2
rails-a9e89e82b67f721fe68ca58a2d371b666cdb7441.zip
add :remote option to form_tag
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_view/helpers/form_tag_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/helpers/form_tag_helper.rb b/actionpack/lib/action_view/helpers/form_tag_helper.rb
index fb32f78e5b..81c76e090a 100644
--- a/actionpack/lib/action_view/helpers/form_tag_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb
@@ -441,6 +441,7 @@ module ActionView
returning options.stringify_keys do |html_options|
html_options["enctype"] = "multipart/form-data" if html_options.delete("multipart")
html_options["action"] = url_for(url_for_options, *parameters_for_url)
+ html_options["data-remote"] = true if html_options.delete("remote")
end
end