def edit_path(resource, is_resource: false, url_params: {})
      decorated = decorate resource

      return unless is_resource || decorated.primary_key_value

      url_for(
        url_params.to_h.reverse_merge(
          resources: decorated.resources_name,
          action: :edit,
          id: decorated.primary_key_value
        ).delete_if { |_, v| v.blank? }
      )
    end
def edit_path(resource, is_resource: false, url_params: {})
      decorated = decorate resource

      return unless is_resource || decorated.primary_key_value

      url_for(
        url_params.to_h.reverse_merge(
          resources: decorated.resources_name,
          action: :edit,
          id: decorated.primary_key_value
        ).delete_if { |_, v| v.blank? }
      )
    end
Url for edit form page of given resource
 @param resource [Object]
 @param is_resource [Boolean]
 @return [String]