Updated DoorAccess application using form_for and active record query