2015-08-10 11:05:06 +02:00
|
|
|
class DemandesController < ApplicationController
|
|
|
|
def show
|
|
|
|
@dossier = Dossier.find(params[:dossier_id])
|
2015-08-11 15:22:07 +02:00
|
|
|
@evenement_vie = EvenementVie.for_admi_facile
|
2015-08-10 11:05:06 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
def choice
|
|
|
|
@dossier = Dossier.find(params[:dossier_id])
|
2015-08-11 15:22:07 +02:00
|
|
|
@dossier.update_attributes(ref_formulaire: params[:ref_formulaire])
|
2015-08-10 11:05:06 +02:00
|
|
|
|
2015-08-11 15:22:07 +02:00
|
|
|
redirect_to url_for( { controller: :carte, action: :show, :dossier_id => params[:dossier_id] } )
|
2015-08-10 11:05:06 +02:00
|
|
|
end
|
|
|
|
end
|