mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
* Allow use of the :with option for submit_to_remote #1936 [jon@instance-design.co.uk]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2103 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
*SVN*
|
||||
|
||||
* Allow use of the :with option for submit_to_remote #1936 [jon@instance-design.co.uk]
|
||||
|
||||
* AbstractRequest#domain returns nil when host is an ip address #2012 [kevin.clark@gmail.com]
|
||||
|
||||
* ActionController documentation update #2051 [fbeausoleil@ftml.net]
|
||||
|
||||
@@ -153,7 +153,7 @@ module ActionView
|
||||
# Returns a button input tag that will submit form using XMLHttpRequest in the background instead of regular
|
||||
# reloading POST arrangement. <tt>options</tt> argument is the same as in <tt>form_remote_tag</tt>
|
||||
def submit_to_remote(name, value, options = {})
|
||||
options[:with] = 'Form.serialize(this.form)'
|
||||
options[:with] ||= 'Form.serialize(this.form)'
|
||||
|
||||
options[:html] ||= {}
|
||||
options[:html][:type] = 'button'
|
||||
|
||||
Reference in New Issue
Block a user