在respond_to
你可以flash[:notice]
这样设置
respond_to do |format|
format.html { redirect_to photo_path(photo), :notice => 'The photos was saved') }
format.xml { render :xml => photo, :status => :created}
end
我正在尝试设置 flash[:success]:success => "yay"
但它不起作用。
难道我做错了什么?