appium_capybara: How to locate elements on native Android app using ids or accessibility ids

I asked just such a question when we were trying to implement Appium in Java:

We decided to go with Ruby. Here’s a simple example of finding an element by resource-id

appium_driver.driver.find_element(:id, id)