Class: ProductsController

Inherits:
Spree::BaseController show all
Defined in:
app/controllers/products_controller.rb

Instance Method Summary collapse

Methods inherited from Spree::BaseController

#access_forbidden, #find_order, #initialize_extension_partials

Methods included from EasyRoleRequirementSystem

included

Methods included from EasyRoleRequirementSystem::InstanceMethods

#included

Methods included from RoleRequirementSystem

included

Instance Method Details

#change_imageObject



13
14
15
16
17
# File 'app/controllers/products_controller.rb', line 13

def change_image
  @product = Product.available.find_by_param(params[:id])
  img = Image.find(params[:image_id])
  render :partial => 'image', :locals => {:image => img}
end