I have a flash notice that causes cookie overflow error:
candidates = Hiring::Candidate.find(params[:candidate_ids])
notice = render_to_string(partial: '/hiring/candidates/new_candidates_assigned', locals: {candidate: candidates})
redirect_to path, notice: notice
I suppose it's because of a lot of object passed to flash. How this can be avoiding?