You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: forms_helper.rb
    path of file: ./repos/form_core/test/dummy/app/helpers
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module FormsHelper
  def smart_form_fields_path(form)
    case form
    when Form
    
  def smart_form_fields_path(form)
    case form
    when Form
      form_fields_path(form)
    when NestedForm
      nested_form_fields_path(form)
    else
      raise "Unknown form: #{form.class}"
    end