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 authored and iox committed Aug 12, 2013
1 parent b5f0ea5 commit 66bff32
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

# Normally, users should be created via the user lifecycle, except
# for the initial user created via the form on the front screen on
# first run. This method creates the initial user.
Expand Down

0 comments on commit 66bff32

Please sign in to comment.