Sign in

In one of my previous blog posts, I explained how to create a full Rails application using the Scaffold generator. However, in many cases, you will need Rails to serve as your backend application that renders APIs to the frontend application. …

Photo by Sébastien Jermer on Unsplash

React Router is a library or a package to help you navigate between your React application components. As mentioned in React Router’s Documentation, “React Router is a collection of navigational components that compose declaratively with your application. …

Photo by Joshua Aragon on Unsplash

If you are new to Rails, you might come across Scaffold generator. So what is scaffold generator in Rails? In this blog post, I will show you a code along with an example of how to use it.

First, What is Scaffold?

Scaffolding, also called scaffold or staging is a temporary structure used to…

Photo by Bernard Hermant on Unsplash

In one of my previous blogs, I explained how to create your first react-native project. In this blog post, we will create a project that updates the state when typing in a TextInputor by clicking a button.

Create a New Project

We know from the previous react-native blog post the way to create a…

Photo by Joshua Aragon on Unsplash

In one of my previous blogs, I wrote a blog post on how to use the Model generator in Rails. In this blog post, I will explain how to use the Resource generator.

As we said before, generators in Rails is a built-in script that produces many application elements. The…

Photo by Dane Deaner on Unsplash

What is Scraping in Ruby?

Scraping in Ruby is a way to extract data from web pages so you can use it in your program. We usually scrape data when the website doesn’t provide raw data, APIs for instance, for the information we need. So we just pull the web page to our program and…

Photo by Ross Sneddon on Unsplash

A big part of Ruby programming is based on making the programmer life’s easier and better. Macros in Ruby were created so programmers don’t write the same things over and over again. So what is a macro in Ruby?!

A macro in Ruby is a piece of code that is…

Photo by Caspar Camille Rubin on Unsplash

Getter and Setter methods in Ruby are gateways to access class instance variables. In this blog post I will explain how to create a class with getter and setter methods.

Let’s explain what a getter and a setter method in Ruby are!

A Getter method is the only way where…

Photo by frank mckenna on Unsplash

A closure is a concept in JavaScript where one function has access to variables that belong to another function. The main thing about these two functions is that one lives inside the other where the inner one has access to the outer one’s variables. …

Photo by Alok Sharma on Unsplash

Migration in Rails is responsible for creating and editing database tables. To migrate the database changes in rails, run $ rails db:migrate.
Rails will only read the new migration files that have never been migrated before. So once you run a migration file, you can’t go back and change it and…


Full stack software engineer. Passionate about making people’s lives better and easier through programming.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store