summaryrefslogtreecommitdiff
path: root/app/controllers/profiles_controller.rb
diff options
context:
space:
mode:
authormo k <mo@mokhan.ca>2013-02-09 15:01:45 -0700
committermo k <mo@mokhan.ca>2013-02-09 15:01:45 -0700
commitca645e06cdb5e9f271c71ae7cce23512bc5bdc83 (patch)
tree19c528613837a5c39c0ccf8d81f38540da2a0233 /app/controllers/profiles_controller.rb
parent31dc2165f3e650769dd3cf586cb1235f71b8257f (diff)
extract the me box
Diffstat (limited to 'app/controllers/profiles_controller.rb')
-rw-r--r--app/controllers/profiles_controller.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/controllers/profiles_controller.rb b/app/controllers/profiles_controller.rb
index 76b77a02..a760f50b 100644
--- a/app/controllers/profiles_controller.rb
+++ b/app/controllers/profiles_controller.rb
@@ -6,11 +6,12 @@ class ProfilesController < ApplicationController
end
def show
- @profile = User.find(params[:id])
- @creations = @profile.creations.page(params[:page]).per(18)
+ @user = User.find(params[:id])
+ @creations = @user.creations.page(params[:page]).per(18)
end
def favorites
+ @user = current_user
@favorites = current_user.favorites
@creations = @favorites.map {|f| f.creation }
end