From 66bff32db25182d9996beb6fcce445b2ec915902 Mon Sep 17 00:00:00 2001 From: Bryan Larsen Date: Mon, 3 Jun 2013 16:38:28 +0200 Subject: [PATCH] auto-completion-controller ## 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 --- app/controllers/users_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 4052c0d..265c770 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -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.