diff --git a/app/controllers/alerts_controller.rb b/app/controllers/alerts_controller.rb index 184bf1d..a4e61d4 100644 --- a/app/controllers/alerts_controller.rb +++ b/app/controllers/alerts_controller.rb @@ -3,7 +3,7 @@ class AlertsController < ApplicationController # GET /alerts # GET /alerts.json def index - @alerts = Alert.all + @alerts = Alert.where("user_id = #{current_user.id}") respond_to do |format| format.html # index.html.erb