Ruby is a language that was developed and released in 1995 by some Japanese Guy (
Yukihiro "Matz" Matsumoto) and Rails is the framework developed by
David Heinemeier Hansson in 2005 on which Ruby runs on. so it's pretty much like C# or VB being the language and .NET being the framework.