In respond_to
benutzerdefinierten Flash setzen Sie flash[:notice]
wie dieseWie mit respond_to in Rails
respond_to do |format|
format.html { redirect_to photo_path(photo), :notice => 'The photos was saved') }
format.xml { render :xml => photo, :status => :created}
end
ich Flash versuche einstellen, um [: Erfolg] mit :success => "yay"
aber es funktioniert nicht.
Mache ich etwas falsch?