def copy_view_files #do NOT change the name of this method 
                        # it must be overriding an existing one in a parent class
      base_path = File.join("app/views", class_path, file_name)
      #binding.pry
      empty_directory base_path
      @actions = actions.nil? || actions.empty? ? %w(index new create edit update destroy) : actions
      @attr_cols = GeneratorUtils::attr_cols(table_name)
      @col_count = @attr_cols.count
      @col_count += 1 if @actions.include?("edit")
      @col_count += 1 if @actions.include?("destroy")
      @search_sort = options.search_sort?
      (@actions - %w(create update destroy)).each do |action|
        @action = action
        formats.each do |format|
          @path = File.join(base_path, filename_with_extensions(action, format))
          set_template(@action, @path)
        end
      end
    end
def copy_view_files #do NOT change the name of this method 
                        # it must be overriding an existing one in a parent class
      base_path = File.join("app/views", class_path, file_name)
      #binding.pry
      empty_directory base_path
      @actions = actions.nil? || actions.empty? ? %w(index new create edit update destroy) : actions
      @attr_cols = GeneratorUtils::attr_cols(table_name)
      @col_count = @attr_cols.count
      @col_count += 1 if @actions.include?("edit")
      @col_count += 1 if @actions.include?("destroy")
      @search_sort = options.search_sort?
      (@actions - %w(create update destroy)).each do |action|
        @action = action
        formats.each do |format|
          @path = File.join(base_path, filename_with_extensions(action, format))
          set_template(@action, @path)
        end
      end
    end
This method seems to always get run first