Class: Admin::ProductGroupsController

Inherits:
ResourceController
  • Object
show all
Defined in:
app/controllers/admin/product_groups_controller.rb

Instance Method Summary collapse

Instance Method Details

#previewObject



4
5
6
7
8
# File 'app/controllers/admin/product_groups_controller.rb', line 4

def preview
  @product_group = ProductGroup.new(params[:product_group])
  @product_group.name = "for_preview"
  respond_with(@product_group) { |format| format.html { render :partial => 'preview', :layout => false } }
end