lib/surveyor/surveyor_controller_methods.rb
# Params: the name of some submit buttons store the section we'd like to go
# to. for repeater questions, an anchor to the repeater group is also stored
# e.g. params[:section] = {"1"=>{"question_group_1"=>"<= add row"}}
the name of some submit buttons store the section we'd like to go
to. for repeater questions, an anchor to the repeater group is also stored
e.g.
the name of some submit buttons store the section we ' d like to go to . for repeater questions an anchor to the repeater group is also stored e . g .
def section_id_from(p = {})
      if p[:section] && p[:section].respond_to?(:keys)
        p[:section].keys.first
      elsif p[:section]
        p[:section]
      elsif p[:current_section]
        p[:current_section]
      end
    end
def section_id_from ( p = { } ) if p [ :section ] && p [ :section ] . respond_to? ( :keys ) p [ :section ] . keys . first elsif p [ :section ] p [ :section ] elsif p [ :current_section ] p [ :current_section ] end end
Params: the name of some submit buttons store the section we'd like to go
to.
Params : the name of some submit buttons store the section we ' d like to go to .
p