Rails is a full-stack framework that emphasizes the use of well-known software engineering patterns and paradigms, including convention over configuration (CoC), don't repeat yourself (DRY), the active record pattern, and model–view–controller (MVC)
Ruby on Rails is a framework written in the Ruby programming language for building best practice web applications. It's called "Ruby on Rails" because it follows the practice of convention over configuration - meaning that they make lots of small decisions about how you should organize your application to get you up and running quickly and with the industry best practices, as opposed to other frameworks that leave everything up to you to decide, which can be overwhelming when you really just care about the code that makes your app unique.