passing variables with redirect_to action:

My index action looks for params[:team_id] It gets calls by url with the path “/pictures?team_id=5” I;m try to redirect back to index after create with this redirect to action

format.html { redirect_to action: “index”, team_id: params[:imageable_id], notice: “The picture has been uploaded.” }

But index action doesn’t get the param team_id