Variations

<%=error_message_on :product, :variations %> <% @product.variations.each do |v| %> <% end %> <% if @product.variations.empty? %> <% end %>
Options Action
<%= variation_options v %> <%= link_to_remote "Remove", :url => {:action => 'delete_variation', :id=> @product, :variation_id => v}, :before => "Element.show('busy_indicator')", :complete => "Element.hide('busy_indicator')", :update => 'variation-listing' %>
None Available.
<% unless @product.new_record? or @product.selected_options.empty? %> <%= link_to_remote "New Product Variation", :url => {:controller => 'products', :action => 'new_variation', :id=> @product}, :before => "Element.hide('new-var-link');Element.show('var_busy_indicator')", :complete => "Element.hide('var_busy_indicator')", :update => 'new-variation' %> <%= image_tag "spinner.gif", :plugin=>"railscart", :style => "display:none", :id => 'var_busy_indicator' %> <% end %>