module PageObjects
  class DeedForm < Base
    def trash_bags=(number)
      this.fill_in(User.human_attribute_name(:trash_bags), with: number)
    end

    def miles_walked=(number)
      this.fill_in(User.human_attribute_name(:miles), with: number)
    end

    def submit
      this.click_on t('helpers.submit.create')
    end

    def selector
      '#new_deed'
    end
  end
end

module PageObjects
  class DeedForm < Base
    def trash_bags=(number)
      this.fill_in(Deed.human_attribute_name(:trash_bags), with: number)
    end

    def miles_walked=(number)
      this.fill_in(Deed.human_attribute_name(:miles), with: number)
    end

    def submit
      this.click_on t('helpers.submit.create')
    end

    def selector
      '#new_deed'
    end
  end
end

Replace User model with Deed
Replace User model with Deed