From: Jan Provaznik <[email protected]>
Should be used flash.now because render is used.
---
.../controllers/resources/instances_controller.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/app/controllers/resources/instances_controller.rb
b/src/app/controllers/resources/instances_controller.rb
index 3bd0c45..f14c838 100644
--- a/src/app/controllers/resources/instances_controller.rb
+++ b/src/app/controllers/resources/instances_controller.rb
@@ -48,7 +48,7 @@ class Resources::InstancesController < ApplicationController
end
rescue
init_new_instance_attrs
- flash[:warning] = "Failed to launch instance: #{$!}"
+ flash.now[:warning] = "Failed to launch instance: #{$!}"
render :new
else
if free_quota
--
1.7.3.4
_______________________________________________
deltacloud-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/deltacloud-devel