Skip to content

Commit

Permalink
auto-completion-controller
Browse files Browse the repository at this point in the history
## A form with auto-completion

Now we'll create the form to add a new person to the project. We'll set it up so that you can type the user's name, with auto-completion, in order to add someone to the project.

First we need the controller side of the auto-complete. Add this declaration to `users_controller.rb`:

SHOW_PATCH
  • Loading branch information
bryanlarsen committed Feb 19, 2010
1 parent f800410 commit 00e765d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/users_controller.rb
Expand Up @@ -4,6 +4,8 @@ class UsersController < ApplicationController

auto_actions :all, :except => [ :index, :new, :create ]

autocomplete

def do_signup
hobo_do_signup do
if this.errors.blank?
Expand Down

0 comments on commit 00e765d

Please sign in to comment.