class ProductsController < ApplicationController

  # GET /products
  # GET /products.json
  def index
    @products = Product.all
  end

  # GET /products/1
  # GET /products/1.json
  def show
    render "/products/details/#{params[:id]}"
  end

  private

    # Never trust parameters from the scary internet, only allow the white list through.
    def product_params
      params[:product]
    end
end
