Change find_by(id: params[:id]) -> find(params[:id])