http://www.tutorialspoint.com/ruby/ruby_loops.htm
You asked for the difference between different types of loops. Samples are available all over the internet, and there are people and organizations that spend days of their lives trying to write nice, simple articles to explain the same concepts.
I told you for loops and while loops are the essentials and if you understand how they're used then all other variations are clear when you go and read their descriptions.
Things like "until i < 3" are just, arguably, clearer ways to say "while not i < 3"
You'd find it easier to answer your own questions by picking up an IDE and actually looking at what the code does, based on some sample syntax, and learning ruby using ruby, not learning ruby based on some programming language you might have learned before (java, C, I don't know)
You learn how a tool works by using it and reading the reference manual.