Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Wrong parameter names in observe_field/observe_form

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@966 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 24142e18666f98e058e163c5e349f5360b826497 1 parent e995f81
@dhh dhh authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_view/helpers/javascript_helper.rb
View
4 actionpack/lib/action_view/helpers/javascript_helper.rb
@@ -127,7 +127,7 @@ def define_javascript_functions
# Additionally, you may specify any of the options documented in
# +link_to_remote.
def observe_field(field_id, options = {})
- build_observer('Form.Element.Observer', name, options)
+ build_observer('Form.Element.Observer', field_id, options)
end
# Like +observe_field+, but operates on an entire form identified by the
@@ -135,7 +135,7 @@ def observe_field(field_id, options = {})
# the default value of the <tt>:with</tt> option evaluates to the
# serialized (request string) value of the form.
def observe_form(form_id, options = {})
- build_observer('Form.Observer', name, options)
+ build_observer('Form.Observer', form_id, options)
end
private
Please sign in to comment.
Something went wrong with that request. Please try again.