Class: ProductsController
- Inherits:
-
Spree::BaseController
- Object
- ActionController::Base
- ApplicationController
- Spree::BaseController
- ProductsController
- 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
Methods included from EasyRoleRequirementSystem
Methods included from EasyRoleRequirementSystem::InstanceMethods
Methods included from RoleRequirementSystem
Instance Method Details
#change_image ⇒ Object
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 |