In respond_to
you can set flash[:notice]
like this
respond_to do |format|
format.html { redirect_to photo_path(photo), :notice => 'The photos was saved') }
format.xml { render :xml => photo, :status => :created}
end
I am trying to set flash[:success] with :success => "yay"
but it doesn't work.
Am I doing something wrong?