Permalink
Browse files

fixed problem in which options[:html][:remote] would be overridden in…

… form_for() - fixes #2094
  • Loading branch information...
1 parent d13b5d4 commit f87b33daaf0f0a93825a3f022d52fcb5aa4c8320 @dgeb dgeb committed with fxn Jul 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/form_helper.rb
@@ -365,7 +365,7 @@ def form_for(record, options = {}, &proc)
apply_form_for_options!(record, options)
end
- options[:html][:remote] = options.delete(:remote)
+ options[:html][:remote] = options.delete(:remote) if options.has_key?(:remote)
options[:html][:method] = options.delete(:method) if options.has_key?(:method)
options[:html][:authenticity_token] = options.delete(:authenticity_token)

0 comments on commit f87b33d

Please sign in to comment.