Skip to content

Commit

Permalink
Added users index
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardGrossman committed Jul 24, 2015
1 parent 4deccdb commit 14868c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/controllers/users_controller.rb
Expand Up @@ -11,6 +11,9 @@ def show
def edit
end

def index
@users = User.all
end

# PATCH/PUT /users/1
def update
Expand All @@ -35,6 +38,6 @@ def validate_authorization_for_user

# 2015-07-23 RICHARD: Added to implement strong parameters
def user_params
params.require(:user).permit(:name, :user)
params.require(:user).permit(:name, :user, :about)
end
end

0 comments on commit 14868c9

Please sign in to comment.