These flashes should be just flash[:notice] and flash[:error] I believe.