    # File lib/action_controller/macros/auto_complete.rb, line 37
            def auto_complete_for(object, method, options = {})
              define_method("auto_complete_for_#{object}_#{method}") do
                find_options = {
                  :conditions => [ "LOWER(#{method}) LIKE ?", '%' + params[object][method].downcase + '%' ],
                  :order => "#{method} ASC",
                  :limit => 10 }.merge!(options)

                @items = object.to_s.camelize.constantize.find(:all, find_options)

                render :inline => "<%= auto_complete_result @items, '#{method}' %>"
              end
            end