diff options
| author | mo <mokha@cisco.com> | 2017-09-01 22:46:52 -0600 |
|---|---|---|
| committer | mo <mokha@cisco.com> | 2017-09-01 22:46:52 -0600 |
| commit | 7a5b6a9f80d534bfa32bb6deb92ccb12762815e8 (patch) | |
| tree | 916bbb4c24321bf476cb862b09a1e42d97100ca3 /app/controllers | |
| parent | 6c0df4f225df1e09192b669815c22f569a832bc6 (diff) | |
upgrade products pages.
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/favorites_controller.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/app/controllers/favorites_controller.rb b/app/controllers/favorites_controller.rb index 095cc23a..d2901dde 100644 --- a/app/controllers/favorites_controller.rb +++ b/app/controllers/favorites_controller.rb @@ -1,11 +1,6 @@ class FavoritesController < ApplicationController before_action :authenticate! - def index - @creation = Creation.find(params[:cake_id]) - @favorites = @creation.favorites - end - def create cake = Creation.find(params[:cake_id]) current_user.add_favorite(cake) |
