aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2004-11-24 01:15:16 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2004-11-24 01:15:16 +0000
commite0b904e74f242dea9427f9b8aa7d3a7e27e94b93 (patch)
treef4417d3c9318d6a7555c8b2033adae472297d524 /actionpack/lib/action_view
parentdb045dbbf60b53dbe013ef25554fd013baf88134 (diff)
downloadrails-e0b904e74f242dea9427f9b8aa7d3a7e27e94b93.tar.gz
rails-e0b904e74f242dea9427f9b8aa7d3a7e27e94b93.tar.bz2
rails-e0b904e74f242dea9427f9b8aa7d3a7e27e94b93.zip
Allow form_tag with no arguments (resulting in a form posting to current action) - Patch #236
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r--actionpack/lib/action_view/helpers/tag_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/tag_helper.rb b/actionpack/lib/action_view/helpers/tag_helper.rb
index 90084c7a8d..dc71826614 100644
--- a/actionpack/lib/action_view/helpers/tag_helper.rb
+++ b/actionpack/lib/action_view/helpers/tag_helper.rb
@@ -23,7 +23,7 @@ module ActionView
# Starts a form tag that points the action to an url configured with <tt>url_for_options</tt> just like
# ActionController::Base#url_for.
- def form_tag(url_for_options, options = {}, *parameters_for_url)
+ def form_tag(url_for_options = {}, options = {}, *parameters_for_url)
html_options = { "method" => "POST" }.merge(options)
if html_options[:multipart]