Simplicity of Rails

rails new...

·

1 min read

Created my first app few months back.

rails new my_app

Magically, a full-stack application opened up in my VS Code window.

Read the documentation at https://guides.rubyonrails.org/ and quickly bootstrapped my way to building a basic social media site where you can have your own profiles, add/remove friends, etc...

It was really that simple!

Rails operates under the MVC architecture.

Models -- Views -- Controllers
  1. MODELS : Represents the data [tables in a database, etc - backend]
  2. VIEWS : Displays the data to the user [html/css/javascript - frontend]
  3. CONTROLLERS : The middle-man that handles data between the frontend and the backend, simply put.

As you can guess now, the Rails framework is full-stack as it can handle everything from a backend server to frontend features for the user.

Luckily, to breeze through the basics and the rails guides I had a fellow developer and my compadre help me as a mentor when I started to learn Ruby & Ruby-on-Rails.

I hope to do the same for my readers to the best of my knowledge and tenacity.

In the next chapter, I describe my love for Ruby and Rails and extend on today’s topic “Simplicity of Rails” and why IMO believe Ruby to be the most lovable Object Oriented programming language.

Stay tuned, madmen!

Love,

M.