Which is a better gem for functional UI testing

Hi,

I am trying develop some code using ruby for testing web applications.
Which is a better way of doing it.Is it using vapir or using capybara
and selenium driver.

Response much appreciated.

Thanks