diff options
| author | mo k <m@mokhan.ca> | 2012-02-07 21:22:45 -0700 |
|---|---|---|
| committer | mo k <m@mokhan.ca> | 2012-02-07 21:22:45 -0700 |
| commit | e62510757a84df16c0c29828641b3bbdd5cfde63 (patch) | |
| tree | f8b95610a379ffaa27ff9e95e27607c845db11f9 /app/controllers/profiles_controller.rb | |
| parent | f361e6465b2770d4f4a3146caa624d50b11beecc (diff) | |
add favorites page.
Diffstat (limited to 'app/controllers/profiles_controller.rb')
| -rw-r--r-- | app/controllers/profiles_controller.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/profiles_controller.rb b/app/controllers/profiles_controller.rb index 16d0df3e..243af0c7 100644 --- a/app/controllers/profiles_controller.rb +++ b/app/controllers/profiles_controller.rb @@ -14,4 +14,8 @@ class ProfilesController < ApplicationController @creations = current_user.creations.page(params[:page]).per(16) end + def favorites + @favorites = current_user.favorites + @creations = @favorites.map {|f| f.creation } + end end |
