diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-02 11:25:21 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-02 11:25:21 +0000 |
commit | 50f0a736242e65408c06b62b0fbd68e2ea349c23 (patch) | |
tree | 6e65bb01cde1e63a2c84a55ffc41372d07e99610 /actionpack/lib/action_controller | |
parent | c2060719d358d60cb4f4204a6c79abebf6ff9b90 (diff) | |
download | rails-50f0a736242e65408c06b62b0fbd68e2ea349c23.tar.gz rails-50f0a736242e65408c06b62b0fbd68e2ea349c23.tar.bz2 rails-50f0a736242e65408c06b62b0fbd68e2ea349c23.zip |
Added JavascriptHelper#draggable_element and JavascriptHelper#drop_receiving_element to facilitate easy dragging and dropping through the script.aculo.us libraries #1578 [Thomas Fuchs]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1606 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/auto_complete.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/auto_complete.rb b/actionpack/lib/action_controller/auto_complete.rb index 685bb63ff9..ef2a57bdf0 100644 --- a/actionpack/lib/action_controller/auto_complete.rb +++ b/actionpack/lib/action_controller/auto_complete.rb @@ -29,7 +29,7 @@ module ActionController def auto_complete_for(object, method, options = {}) define_method("auto_complete_for_#{object}_#{method}") do find_options = { - :conditions => [ "LOWER(#{method}) LIKE ?", '%' + request.raw_post.downcase + '%' ], + :conditions => [ "LOWER(#{method}) LIKE ?", '%' + params[object][method] + '%' ], :order => "#{method} ASC", :limit => 10 }.merge!(options) |