app/helpers/navigation_helper.rb
# Checks if the navigation buttons should be active, according to the current step
Checks if the navigation buttons should be active, according to the current step
Checks if the navigation buttons should be active according to the current step
def active_button? (steps, step_to_validate, step, id)
    if id
      return step == step_to_validate
    else
      return steps.find_index(step) === steps.find_index(step_to_validate)
    end
  end
def active_button? ( steps , step_to_validate , step , id ) if id return step == step_to_validate else return steps . find_index ( step ) === steps . find_index ( step_to_validate ) end end
Checks if the navigation buttons should be active, according to the current step
Checks if the navigation buttons should be active according to the current step
# When is editing
steps
step_to_validate
step
id