Ruby is the programming language itself, while Ruby on Rails is a web application framework built using Ruby. The question incorrectly states that Ruby on Rails is a general-purpose language; Rails is specifically designed for web development, whereas Ruby is the general-purpose object-oriented language.