Class: Comable::ProductsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Comable::ProductsController
- Defined in:
- app/controllers/comable/products_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#index ⇒ Object
5 6 7 |
# File 'app/controllers/comable/products_controller.rb', line 5 def index @products = @products.page(params[:page]).per(Comable::Config.products_per_page) end |
#show ⇒ Object
9 10 11 |
# File 'app/controllers/comable/products_controller.rb', line 9 def show @product = Comable::Product.find(params[:id]) end |