diff options
| author | mo khan <mo@mokhan.ca> | 2014-05-18 20:55:22 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-05-18 20:55:22 -0600 |
| commit | 1803cacae761c876fe5b554a1edde4cee0efdb21 (patch) | |
| tree | 41c09b3f75cb6bff124206865442e112ef7d649b /app/controllers/admin/users_controller.rb | |
| parent | 13c4603b58f7a3ccf28510f3eef080aaf73dba1c (diff) | |
add page to display admin info for a single user.
Diffstat (limited to 'app/controllers/admin/users_controller.rb')
| -rw-r--r-- | app/controllers/admin/users_controller.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/controllers/admin/users_controller.rb b/app/controllers/admin/users_controller.rb index bd2da01a..8d76a18a 100644 --- a/app/controllers/admin/users_controller.rb +++ b/app/controllers/admin/users_controller.rb @@ -2,10 +2,11 @@ module Admin class UsersController < AdminController def index @users = User.includes(:avatar).order(:created_at => :desc) - @recent_users = @users.limit(10) - @active_users = @users.order(:updated_at).limit(10) - @recent_activities = Activity.order(:created_at => :desc).limit(10) expires_in(10.minutes) end + + def show + @user = User.find(params[:id]) + end end end |
