Using before_action to replace each "@group = Group.find(params[:group_id])"