negos_app/app/controllers/public/reseauxes_controller.rb
2017-09-19 11:33:15 +02:00

28 lines
467 B
Ruby
Executable File

class Public::ReseauxesController < ApplicationController
layout "public"
def index
@reseauxes = current_customer.own_reseauxes.order(:name)
if @reseauxes.count == 1
redirect_to public_reseaux_path(@reseauxes.first)
end
end
def show
@reseaux = current_customer.own_reseauxes.find(params[:id])
#@reseaux = Reseaux.find(params[:id])
end
def products
#@reseaux = Reseaux.find(params[:id])
end
end