Battery-included framework
Ruby on Rails is actually a complete framework many out-of-the-box tools easily available. It comes together with numerous scripts referred to as generators. Ruby course generate anything that is essential to start out taking care of a new particular task.
Conversion over Configuration
Ruby on Rails normally takes an opinionated tactic, which means that operates on typically the assumption there can be the best approach of making factors. Its Convention above Configuration paradigm lessens the number involving decisions a developer is required to be able to make by supplying conventions for controlling asset management, course-plotting, stateful data, together with more. Basically, it gives you the baseline functionality for most web applications.
Layered structure
Ruby on Rails is based on the Model-View-Controller (MVC) architecture that separates an app’s logic (located in models) from the routing and presentation of application information. Such a concept is not limited to Ruby on Rails, though. It is also used by Django, ReactJS, AngularFS, and other frameworks. The MCV connects the frontend and the backend. It consists of a:
• Model: it handles everything related to the database,
• View: it deals with what users can see in the app,
• Controller: it deals with the requests made by users and returns a result, and talks to the database.
Thanks to the MVC, developers don’t need to make decisions on how to organize the code (at least at the early stage of the product), which saves time and makes assembling an MVP more efficient.
Gems
Gems are third-party components, ready to download and use for your project. Does your app require registration and authentication? You can set it up with a Devise gem. Data Visualization? RailRoady, Rails Erd, or Ruby/GraphViz are there for you. Database Tools? Database Cleaner is a set of strategies for cleaning your database in Ruby, while PgHero makes Postgres insights easy. There are plenty of gems that support popular frontend frameworks, such as Angular, Vue.js, React.js, and CSS tools. It’s safe to say that there is a gem for everything, and they save developers tons of time.
Learn more : https://en.wikipedia.org/wiki/Ruby_on_Rails
Top comments (0)