Correct examples for test automation with cucumber

Hello
I started learn Ruby but I have still problem with some projects or
tutorial from Internet
Problem is with different types of version(gems)

I would like to see CORRECT examples with cucumber(e.g login,
registration) with PROPER structure.
I tried tutorial from this:

but still some problems occured
In the example there is no “gemfile” I copied gems from env file