diff options
author | Tomer Kimia <tkimia@purdue.edu> | 2014-03-03 19:51:30 -0500 |
---|---|---|
committer | Tomer Kimia <tkimia@purdue.edu> | 2014-03-03 19:51:30 -0500 |
commit | b8c14b654255376d79fae55e139a968930be4569 (patch) | |
tree | 9197a97b1392801ec138327b00e9bd31c050ab77 /app/controllers | |
parent | 254f8b72b2d92787d2e1f9e7589935b2c0dae66d (diff) |
fixed users table
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/users_controller.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 6436e4e..c14f67c 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -15,9 +15,13 @@ class UsersController < ApplicationController end def show - @user = User.find(param[:id]) + @user = User.find(params[:id]) end + def index + @users = User.all + end + private def user_params |