Ruby is one of the older programming languages, created two decades ago. It is among the top ten most popular programming languages by most measures, though it is usually ranked towards the end of the list. Most of its popularity these days also stems from the popularity of the Rails framework. Ruby, like C language or Java, is an all-purpose programming language, but is most popularly used for web programming.
What is Rails?
Rails is basically a software library that extends Ruby, created by David Heinemeier Hansson. It is called ‘Ruby on Rails’, ‘RoR’, or just ‘Rails’ in many cases. It is a software code addition to the Ruby programming language. In technical terms, it is a package library or ‘RubyGem’ installed with the command-line interface of the operating system.
Rails is used as a website development framework, and it is sets conventions for easier maintenance and collaboration, codified as the Rails application programming interface (API). The Rails API essentially provides directives to control the code. It is documented on the internet and described in a lot of places. Learning Ruby on Rails from scratch involves learning how to use the API and the Rails conventions.
In a larger senses, Rails less of an API and more of a software library. It is a central project involving a huge community producing software libraries and codes that simplifies site-building. Members of this Rails community share many of the core values, support each other and often use the same set of tools.