diff options
author | Stephen St. Martin <kuprishuz@gmail.com> | 2010-01-31 14:42:40 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2010-01-31 13:46:27 -0600 |
commit | a3349f845ffa2415e12ac9e26b4f7300d7edd3ef (patch) | |
tree | 74f935f2c8dd814c15b54d2f6165212ea553f261 /actionpack/lib/action_view | |
parent | 59e9478f57216999c12580c42cb9149894090123 (diff) | |
download | rails-a3349f845ffa2415e12ac9e26b4f7300d7edd3ef.tar.gz rails-a3349f845ffa2415e12ac9e26b4f7300d7edd3ef.tar.bz2 rails-a3349f845ffa2415e12ac9e26b4f7300d7edd3ef.zip |
form_for should pass :remote to form_tag through html_options
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_helper.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb index 20e9916d62..54610fdc71 100644 --- a/actionpack/lib/action_view/helpers/form_helper.rb +++ b/actionpack/lib/action_view/helpers/form_helper.rb @@ -280,6 +280,8 @@ module ActionView args.unshift object end + options[:html][:remote] = true if options.delete(:remote) + concat(form_tag(options.delete(:url) || {}, options.delete(:html) || {})) fields_for(object_name, *(args << options), &proc) concat('</form>'.html_safe!) |