Ruby on Rails ! What is it?Rails is a web application framework designed to work with the Ruby programming language. Sound like Shaghala Baghala?! I know!
There is a programming language called Ruby. It’s super fun to write. It makes programmers happy.Its forgiving of errors
WHY RUBY ON RAILS
Many Ruby developers find it fun to work with Ruby, and fun is a great motivator when learning to code. Ruby is a very high level language, which means Ruby abstracts away (i.e. handles for you) most of the complex details of the machine. Thus, you can quickly build something from scratch with less lines of code.
Ruby was made popular by the Ruby on Rails framework, a full-stack web framework that makes prototyping a breeze, making it a web framework of choice for many startups and coding beginners alike.
Looking for a simple Language to write web apps?
Learning to program in Ruby is much easier than in other languages because the language is super flexible,simple to understand and its very forgiving , which translates to more time spent absorbing programming fundamentals and less time banging your head against your desk.
Now, why Rails is so fun for beginners is because it’s really robust and it does SO MUCH of the hard work for you.
Easy to Get Started With
Ruby was originally designed with the goal of making programming fun, and in Japan, where it came from, Ruby was used to make games. Ruby is succinct and reads like English, which makes the code easy to understand for coding beginners.
Since you'll be able to build prototypes quickly with Ruby on Rails, many find coding in Ruby a satisfying experience.
As a dynamically typed language, Ruby does not have hard rules on how to build features, and it is very close to spoken languages. You'll have more flexibility solving problems using different methods. Furthermore, Ruby is also more forgiving of errors, so you'll still be able to compile and run your program until you hit the problematic part.
Welcome to Rails
Rails is a web-application framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern. Understanding the MVC pattern is key to understanding Rails. MVC divides your application into three layers, each with a specific responsibility.
The Model layer represents your domain model (such as Account, Product, Person, Post, etc.) and encapsulates the business logic that is specific to your application. In Rails, database-backed model classes are derived from ActiveRecord::Base. Active Record allows you to present the data from database rows as objects and embellish these data objects with business logic methods.
Although most Rails models are backed by a database, models can also be ordinary Ruby classes, or Ruby classes that implement a set of interfaces as provided by the Active Model module.
The Controller layer is responsible for handling incoming HTTP requests and providing a suitable response. Usually this means returning HTML, but Rails controllers can also generate XML, JSON, PDFs, mobile-specific views, and more. Controllers load and manipulate models, and render view templates in order to generate the appropriate HTTP response. In Rails, incoming requests are routed by Action Dispatch to an appropriate controller, and controller classes are derived from ActionController::Base. Action Dispatch and Action Controller are bundled together in Action Pack.
The View layer is composed of "templates" that are responsible for providing appropriate representations of your application's resources. Templates can come in a variety of formats, but most view templates are HTML with embedded Ruby code (ERB files). Views are typically rendered to generate a controller response, or to generate the body of an email. In Rails, View generation is handled by Action View.
Active Record, Active Model, Action Pack, and Action View can each be used independently outside Rails. In addition to that, Rails also comes with Action Mailer, a library to generate and send emails; Active Job, a framework for declaring jobs and making them run on a variety of queueing backends; Action Cable, a framework to integrate WebSockets with a Rails application; Active Storage, a library to attach cloud and local files to Rails applications; and Active Support, a collection of utility classes and standard library extensions that are useful for Rails, and may also be used independently outside Rails.
If you think you’re ready to start coding, head over to the
LEARN WITH US, LEARN BY DOING
Ruby on Rails (RoR) is a popular web framework for web application development built on the Ruby programming language. As a full-fledged web framework, RoR offers many components of a successful web project, such as an ORM (Object Relational Mapping) system for business data and logic, routing, and application management out of the box.
With as little as 20,000/= Kenya shillings you can get started.
The central pillar of the Rails philosophy is the DRY (Don’t Repeat Yourself) principle that ensures a clear separation of concerns and maintainability of your application.
Ruby is a very practical language and there are many well-paying jobs available for it today. Rails, the main web framework for Ruby, is being very actively developed and improved. It is keeping up with modern web conventions and standards, and in many cases taking the lead.
Developer Fundamentals to grasp the best out of Ruby
Learn Enough Command Line
Learn Enough Text Editor
Learn Enough Git
Learn Enough HTML
Learn Enough CSS & Layout
Imagine what you could build if you learned Ruby on Rails…
Learning to build a modern web application is daunting. Ruby on Rails makes it much easier and more fun. It includes everything you need to build fantastic applications, and you can learn it with the support of our, friendly Tutors.