github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

rails / auto_complete

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 238
    • 42
  • Source
  • Commits
  • Network (42)
  • Issues (3)
  • 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:
Pledgie_example
This service is courtesy of Pledgie.

Auto Completion plugin — Read more

  cancel

http://rubyonrails.org

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Fix auto complete loading (closes #9528) [josh] 
dhh (author)
Tue Sep 11 08:01:16 -0700 2007
commit  7b18f05af68dec0f9e45b1a01d6b7c94e306caeb
tree    b4d16fd7839917f39b544f964fabdf2e6d812bdd
parent  66cc3d3b337ebc57e44149f5060f4fbaa70bb552
auto_complete /
name age
history
message
file README Mon Sep 10 19:55:47 -0700 2007 Extracted auto complete macro into its own plug... [dhh]
file Rakefile Mon Sep 10 19:55:47 -0700 2007 Extracted auto complete macro into its own plug... [dhh]
file init.rb Tue Sep 11 08:01:16 -0700 2007 Fix auto complete loading (closes #9528) [josh] [dhh]
directory lib/ Mon Sep 10 19:55:47 -0700 2007 Extracted auto complete macro into its own plug... [dhh]
directory test/ Mon Sep 10 19:55:47 -0700 2007 Extracted auto complete macro into its own plug... [dhh]
README
Example:

  # Controller
  class BlogController < ApplicationController
    auto_complete_for :post, :title
  end

  # View
  <%= text_field_with_auto_complete :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 examples, see script.aculo.us:
* http://script.aculo.us/demos/ajax/autocompleter
* http://script.aculo.us/demos/ajax/autocompleter_customized

Copyright (c) 2007 David Heinemeier Hansson, released under the MIT license   
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server