Try this 

````
redirect_to(assigns(:team), :status => 302, :notice => "Team was successfully created.")

````