suite
This commit is contained in:
parent
8c96986309
commit
10bf7b95d0
@ -15,6 +15,8 @@ class Public::ReseauxesController < ApplicationController
|
|||||||
@reseaux_chief_layout = true
|
@reseaux_chief_layout = true
|
||||||
#@reseaux = Reseaux.find(params[:id])
|
#@reseaux = Reseaux.find(params[:id])
|
||||||
|
|
||||||
|
session[:reseaux_id] =@reseaux.id
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def products
|
def products
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
-if reseaux.default_part == 3
|
-if reseaux.default_part == 3
|
||||||
-reseaux_path = public_reseaux_products_path(:reseaux_id => reseaux.id)
|
-reseaux_path = public_reseaux_products_path(:reseaux_id => reseaux.id)
|
||||||
-elsif reseaux.default_part == 2
|
-elsif reseaux.default_part == 2
|
||||||
-reseaux_path = public_needs_path(:type => 2, :reseaux_id => reseaux.id)
|
-reseaux_path = public_reseaux_products_path(:type => 2, :reseaux_id => reseaux.id)
|
||||||
-else
|
-else
|
||||||
-reseaux_path = public_needs_path(:type => 1, :reseaux_id => reseaux.id)
|
-reseaux_path = public_needs_path(:type => 1, :reseaux_id => reseaux.id)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user