提交 e0b904e7 编写于 作者: D David Heinemeier Hansson

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
上级 db045dbb
*CVS*
* Added the choice to call form_tag with no arguments (resulting in a form posting to current action) [bitsweat]
* Upgraded to Builder 1.2.1
* Added :module as an alias for :controller_prefix to url_for and friends, so you can do redirect_to(:module => "shop", :controller => "purchases")
......
......@@ -23,7 +23,7 @@ def content_tag(name, content, options = {})
# 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]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册