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, #default_title, #find_order, #initialize_extension_partials, #set_title, #title

Methods inherited from ApplicationController

#admin_created?

Methods included from EasyRoleRequirementSystem

included

Methods included from EasyRoleRequirementSystem::InstanceMethods

#included

Methods included from RoleRequirementSystem

included

Instance Method Details

#change_imageObject



15
16
17
18
19
# File 'app/controllers/products_controller.rb', line 15

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