diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-21 13:11:48 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-21 13:11:48 +0000 |
commit | 24142e18666f98e058e163c5e349f5360b826497 (patch) | |
tree | 3a3e773313dc54396d395a674de1f5c572eb083b /actionpack | |
parent | e995f81a2f40c550a24a9fb8264771087cc1fe46 (diff) | |
download | rails-24142e18666f98e058e163c5e349f5360b826497.tar.gz rails-24142e18666f98e058e163c5e349f5360b826497.tar.bz2 rails-24142e18666f98e058e163c5e349f5360b826497.zip |
Wrong parameter names in observe_field/observe_form
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@966 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_view/helpers/javascript_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/javascript_helper.rb b/actionpack/lib/action_view/helpers/javascript_helper.rb index 1570a363a7..569f3ff194 100644 --- a/actionpack/lib/action_view/helpers/javascript_helper.rb +++ b/actionpack/lib/action_view/helpers/javascript_helper.rb @@ -127,7 +127,7 @@ module ActionView # 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 @@ module ActionView # 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 |