deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francesco Vollero <fvoll...@redhat.com>
Subject [PATCH core 1/3] core: pass the locals properly due to tilt template changes
Date Fri, 22 Mar 2013 13:11:09 GMT

Signed-off-by: Francesco Vollero <fvollero@redhat.com>
---
 server/lib/deltacloud/helpers/deltacloud_helper.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/lib/deltacloud/helpers/deltacloud_helper.rb b/server/lib/deltacloud/helpers/deltacloud_helper.rb
index af14041..b794560 100644
--- a/server/lib/deltacloud/helpers/deltacloud_helper.rb
+++ b/server/lib/deltacloud/helpers/deltacloud_helper.rb
@@ -92,8 +92,8 @@ module Deltacloud::Helpers
       instance_variable_set("@#{model}", @element)
       if @element
         respond_to do |format|
-          format.html { haml :"#{model.to_s.pluralize}/show" }
-          format.xml { haml :"#{model.to_s.pluralize}/show" }
+          format.html { haml :"#{model.to_s.pluralize}/show", :locals=>{model=>@element}
}
+          format.xml { haml :"#{model.to_s.pluralize}/show" , :locals=>{model=>@element}}
           format.json { JSON::dump(model => @element.to_hash(self)) }
         end
       else
-- 
1.8.1.4


Mime
View raw message