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: notes_helper.rb
    path of file: ./repos/hitobito/app/helpers
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

#
    
  def note_path(note, group_id)
    case note.subject
    when Group
      group_note_path(group_id: note.subject_id, id: note.id)
    when Person
      group_person_note_path(group_id: group_id, person_id: note.subject_id, id: note.id)
    end