Open in app

Sign In

Write

Sign In

Juzer Shakir
Juzer Shakir

84 Followers

Home

About

Jun 26, 2022

Accessor in Ruby

A built-in method that provides getter and setter methods. Before we get into what an Accessor is and its methods and how they’re defined in a class, let's understand the motivation behind it. Let’s create a class named student where we will store basic information about each student…

Ruby

4 min read

Accessor in Ruby
Accessor in Ruby
Ruby

4 min read


Jun 19, 2022

An Overview of JavaScript

Notes on one of the best courses on JS on the Internet. NOT A TUTORIAL! Today, I would like to share tips or notes, not on Ruby or Rails but on JavaScript (JS). It is one of the essential programming languages to learn if you're into web development, regardless if…

JavaScript

9 min read

An Overview of JavaScript
An Overview of JavaScript
JavaScript

9 min read


Published in Nerd For Tech

·Nov 16, 2021

Setting up PostgreSQL for Rails

A guide to newbies: to our future ROR developers! Setting up PostgresSQL for your new project is pretty simple. Just give a few commands in the terminal and you’re done. I still remember, for my first project of ROR I was given a task to use PostgreSQL database instead of…

Ruby On Rails

3 min read

Setting up PostgreSQL for Rails
Setting up PostgreSQL for Rails
Ruby On Rails

3 min read


Published in Nerd For Tech

·Sep 11, 2021

Rails Association — Part 1

What, Why, How & 3 Types of Associations discussed. Prerequisite: Active Record Basics Rails Migrations - Generating Migration Files (Part 1) - Executing Migration Files (Part 2) - Updating Existing Tables (Part 3) Table of Contents ↣ What is Association? ↣ Why Association? ↣ How to set up connections between models? …

Ruby On Rails

9 min read

Rails Association — Part 1
Rails Association — Part 1
Ruby On Rails

9 min read


Sep 10, 2021

Single Table Inheritance (STI)

An Active Record Association that associates instances without a foreign key. Prerequisite: Rails Association — Part 1 What, Why, How & 3 Types of Associations — belongs to, has one & has one — through discussed.medium.com Rails Association — Part 2 has_many, has_many-:through & HABTM associations discussed.juzer-shakir.medium.com Rails Association — Part 3 Setting Unconventional foreign-key with bi-directional association & custom association name.juzer-shakir.medium.com

Ruby On Rails

4 min read

Single Table Inheritance (STI)
Single Table Inheritance (STI)
Ruby On Rails

4 min read


Sep 10, 2021

Self -Join

An Active Record association that links to itself. Prerequisite: Rails Association — Part 1 What, Why, How & 3 Types of Associations — belongs to, has one & has one — through discussed.medium.com Rails Association — Part 2 has_many, has_many-:through & HABTM associations discussed.juzer-shakir.medium.com Rails Association — Part 3 Setting Unconventional foreign-key with bi-directional association & custom association name.juzer-shakir.medium.com

Ruby On Rails

4 min read

Self -Join
Self -Join
Ruby On Rails

4 min read


Sep 10, 2021

Polymorphic

An Active Records’ simple yet twisted association. Prerequisite: Rails Association — Part 1 What, Why, How & 3 Types of Associations — belongs to, has one & has one — through discussed.medium.com Rails Association — Part 2 has_many, has_many-:through & HABTM associations discussed.juzer-shakir.medium.com Rails Association — Part 3 Setting Unconventional foreign-key with bi-directional association & custom association name.juzer-shakir.medium.com

Ruby On Rails

5 min read

Polymorphic
Polymorphic
Ruby On Rails

5 min read


Sep 10, 2021

Rails Association — Part 3

A deeper look into foreign keys & custom association names and the methods it generates. Prerequisite: Rails Association — Part 1 What, Why, How & 3 Types of Associations — belongs to, has one & has one — through discussed.medium.com Rails Association — Part 2 has_many, has_many-:through & HABTM associations discussed.juzer-shakir.medium.com Table of Contents ↦ Conventional foreign key ↦ Unconventional foreign key ↪ Bi-directional association

Ruby On Rails

8 min read

Rails Association — Part 3
Rails Association — Part 3
Ruby On Rails

8 min read


Sep 10, 2021

Rails Association — Part 2

An elaboration of has_many, has_many-:through & HABTM associations. Prerequisite: Rails Association — Part 1 What, Why, How & 3 Types of Associations — belongs to, has one & has one — through discussed.medium.com Table of Contents ↦ has_many ↦ has_many — :through ↪ one-to-many ↪ many-to-many ↦ has_and_belongs_to_many ↦ has_many-:through or has_and_belong_to_many? ↦ Relationships The belongs_to, has_one and has_one-:through associations are discussed in my previous article. In this article, we will discuss, has_many, has_many-:through and has_and_belongs_to_many associations.

Ruby On Rails

9 min read

Rails Association — Part 2
Rails Association — Part 2
Ruby On Rails

9 min read


Published in Geek Culture

·Jul 28, 2021

Rails Migration — Part 3

Updating existing tables with different migration methods. Prerequisite: This article is a continuation of previous articles: Rails Migration — Part 1 (Generate migration files) Rails Migration — Part 2 (Execute migration files) Table of Contents ↦ Standalone Migration ↦ Migration Methods ↪ change ↪ ↪ Attribute Modifiers ↪ change_table ↪ up & down ↪…

Ruby On Rails

6 min read

Rails Migration — Part 3
Rails Migration — Part 3
Ruby On Rails

6 min read

Juzer Shakir

Juzer Shakir

84 Followers

Rails | Ruby | Javascript | SQL | https://juzershakir.github.io/

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech