Skip to content

Instantly share code, notes, and snippets.

@irissilvermoon
Last active December 15, 2015 19:59
Show Gist options
  • Save irissilvermoon/5314943 to your computer and use it in GitHub Desktop.
Save irissilvermoon/5314943 to your computer and use it in GitHub Desktop.
what i put here?
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