Sha256: 5e082e2843f50a33ba882a3ebc02c2db01439545661060d826ec66962fbd3070
Contents?: true
Size: 716 Bytes
Versions: 5
Compression:
Stored size: 716 Bytes
Contents
- unless defined?(partial) !!! XML %image{:href => image_url(@image.id), :id => @image.id} - @image.attributes.select{ |attr| ![:id, :hardware_profiles].include?(attr) }.each do |attribute| - haml_tag(attribute, :<) do - haml_concat @image.send(attribute) - if @image.hardware_profiles %hardware_profiles - @image.hardware_profiles.each do |profile| %hardware_profile{ :href => hardware_profile_url(profile.name), :id => profile.name, :rel => :hardware_profile } %actions %link{ :rel => 'create_instance', :method => :post, :href => "#{instances_url};image_id=#{@image.id}"} %link{ :rel => 'destroy_image', :method => :delete, :href => "#{destroy_image_url(@image.id)}" }
Version data entries
5 entries across 5 versions & 1 rubygems