Last active
December 15, 2015 19:59
-
-
Save irissilvermoon/5314943 to your computer and use it in GitHub Desktop.
what i put here?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def destroy | |
@watched_user = current_user.watched_users.find(params[:id]) | |
@subscription = current_user.outbound_subscriptions.where(:watching_id => @watching.id).first | |
@subscription.destroy | |
flash[:notice] = "#{@watched_user.email} was removed from watchers." | |
redirect_to watched_users_path | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment