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

module Spotlight
  ##
  # Helpers for building polymorphic links within the exhibit context
  module CrudLinkHelpers
    def cancel_link(model, link, link_to_options = {})
      link_to action_default_value(model, :cancel), link, link_to_options
    end

    def view_link(model, *args)
      
    
    def nav_link(name = nil, options = nil, html_options = nil, &block)
      # rubocop:disable Style/ParallelAssignment
      # (Note: this is copied from upstream in Rails)
      html_options, options, name = options, name, block if block_given?
      # rubocop:enable Style/ParallelAssignment

      html_options ||= {}

      content_tag(:li, class: 'nav-item') do
        if block_given?
          link_to(options, nav_link_html_options(options, html_options), &block)
        else
          link_to(name, options, nav_link_html_options(options, html_options), &block)
        end
      end