| CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Wed, 24 Dec 2025 04:26:20 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100218084725
location: https://web.archive.org/web/20100218084725/https://github.com/chris/auto_complete_jquery
server-timing: captures_list;dur=0.670421, exclusion.robots;dur=0.064283, exclusion.robots.policy;dur=0.053353, esindex;dur=0.009921, cdx.remote;dur=18.984964, LoadShardBlock;dur=123.249378, PetaboxLoader3.datanode;dur=59.886049, PetaboxLoader3.resolve;dur=44.025805
x-app-server: wwwb-app242-dc8
x-ts: 302
x-tr: 182
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app242; path=/
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Wed, 24 Dec 2025 04:26:21 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Thu, 18 Feb 2010 08:47:24 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "280bbf185a71e3e5dd28df6407eb29fc"
x-archive-orig-x-runtime: 165ms
x-archive-orig-content-length: 25231
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Thu, 18 Feb 2010 08:47:25 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 51_14_20100218074730_crawl102-c/51_14_20100218084650_crawl101.arc.gz
server-timing: captures_list;dur=2.952225, exclusion.robots;dur=0.065110, exclusion.robots.policy;dur=0.040960, esindex;dur=0.022922, cdx.remote;dur=7.227199, LoadShardBlock;dur=86.465174, PetaboxLoader3.datanode;dur=111.185571, load_resource;dur=95.470205, PetaboxLoader3.resolve;dur=43.701099
x-app-server: wwwb-app242-dc8
x-ts: 200
x-tr: 261
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
chris's auto_complete_jquery at master - GitHub
This service is courtesy of Pledgie.
chris / auto_complete_jquery
- Source
- Commits
- Network (10)
- Issues (1)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
-
Branches (1)
- master ✓
- Tags (0)
Sending Request…
Enable Donations
Pledgie Donations
Once activated, we'll place the following badge in your repository's detail box:
Rails plugin for auto_complete with jQuery instead of Prototype/Scriptaculous — Read more
| name | age | message | |
|---|---|---|---|
| |
CHANGELOG | Tue Jul 01 10:53:33 -0700 2008 | Switched to different jQuery autocomplete plugi... [chris] |
| |
README | Tue Aug 26 00:26:07 -0700 2008 | Update README to list the proper place to get t... [chris] |
| |
Rakefile | Wed Jun 04 12:10:34 -0700 2008 | Add initial auto_complete_jquery Rails plugin i... [chris] |
| |
auto_complete_jquery.gemspec | Mon Dec 29 19:00:19 -0800 2008 | fix readme [idris] |
| |
init.rb | Fri Jun 26 12:23:52 -0700 2009 | removed auto_complete_helper I prefer manually... [robertwahler] |
| |
lib/ | Tue Jul 01 10:53:33 -0700 2008 | Switched to different jQuery autocomplete plugi... [chris] |
README
This plugin provides a auto-complete method for your controllers to be used with Dylan Verheul's jquery autocomplete plugin. This jQuery plugin is not included, and can be obtained from: https://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ This auto_complete_jquery plugin is just a modified version of the standard Rails auto_complete plugin. It provides the same auto_complete_for method for your controllers, but eliminates the various view helper methods, as those are not needed when using jQuery and Unobtrusive JavaScript. To use this, you need to have jQuery and the autocomplete plugin mentioned above (as well as appropriate CSS). Then, there are four aspects of setting up an auto-complete field: 1) Create the text field in your view, which is just a regular form text field as you'd create in a Rails erb view: <%= post.text_field :title, :autocomplete =>"off" %> 2) Include the appropriate JS files and CSS in your layout or similar: <%= stylesheet_link_tag 'jquery.ui.autocomplete' %> <%= javascript_include_tag 'jquery.min', 'jquery.dimensions.min', 'jquery.templating', 'jquery.ui.autocomplete.ext', 'jquery.ui.autocomplete', :cache => 'jquery' %> 3) Use the auto_complete_for controller macro to generate the appropriate auto-complete method in your controller, such as: # Controller class BlogController < ApplicationController auto_complete_for :post, :title end 4) Hook up the text field's autocomplete event in your JavaScript file using jQuery and the jquery-autocomplete plugin mechanism, for example: $(document).ready(function() { $("input#post_title").autocomplete("auto_complete_for_post_title") }); By default, auto_complete_for limits the results to 10 entries, and sorts by the given field. auto_complete_for takes a third parameter, an options hash to the find method used to search for the records: auto_complete_for :post, :title, :limit => 15, :order => 'created_at DESC' For more information, see: * jQuery site: https://jquery.com * Dylan Verheul jquery autocomplete plugin site: https://www.dyve.net/jquery/?autocomplete * Good article on jQuery and Rails (note this mentions a different jquery autocomplete plugin, which was originally used in this plugin): https://errtheblog.com/posts/73-the-jskinny-on-jquery * Original Rails auto_complete plugin: https://github.com/rails/auto_complete Copyright (c) 2008 Cobalt Edge LLC, released under the MIT license.
