use correct param name

This commit is contained in:
Bilal
2020-10-05 11:24:52 +03:00
parent 45517e869a
commit ffafdb66ee

View File

@@ -13,7 +13,7 @@ class HomiesController < ApplicationController
end
def destroy
id = params[:id].to_i
id = params[:homie_id].to_i
if Homie.destroy(id)
index
else