demarches-normaliennes/app/controllers/users/siret_controller.rb
2015-10-08 11:22:55 +02:00

12 lines
333 B
Ruby

class Users::SiretController < UsersController
def index
@procedure = Procedure.find(params['procedure_id'])
@siret = current_user.siret
rescue ActiveRecord::RecordNotFound
error_procedure
end
def error_procedure
render :file => "#{Rails.root}/public/404_procedure_not_found.html", :status => 404
end
end