app/helpers/custom_form_helpers.rb
def next_step_if_present
    next_step = case params[:next_step]
                when 'cya'
                  '/steps/check/check_your_answers'
                end

    hidden_field_tag(:next_step, next_step) if next_step
  end
# Do not blindly trust the param, always check
Do not blindly trust the param, always check
Do not blindly trust the param always check
def next_step_if_present
    next_step = case params[:next_step]
                when 'cya'
                  '/steps/check/check_your_answers'
                end
    hidden_field_tag(:next_step, next_step) if next_step
  end
def next_step_if_present next_step = case params [ :next_step ] when 'cya' '/steps/check/check_your_answers' end hidden_field_tag ( :next_step , next_step ) if next_step end
Do not blindly trust the param, always check
Do not blindly trust the param always check