demarches-normaliennes/app/controllers/champs/rna_controller.rb

13 lines
330 B
Ruby
Raw Normal View History

2022-10-04 22:11:01 +02:00
class Champs::RNAController < ApplicationController
before_action :authenticate_logged_user!
def show
@champ = policy_scope(Champ).find(params[:champ_id])
2023-01-16 15:47:22 +01:00
rna = read_param_value(@champ.input_name, 'value')
unless @champ.fetch_association!(rna)
@error = @champ.association_fetch_error_key
end
2022-10-04 22:11:01 +02:00
end
end