Open in app
Home
Notifications
Lists
Stories

Write
Okechukwu Uneze
Okechukwu Uneze

Home

Jun 10

Ruby on Rails Get Query Filter

Given a GET request is made to “/users?<some-query-here>”, then all users that meet the query criteria are returned in a JSON array, and the status code is 200. first we will create our index action that renders users and set a before_action that calls filter_users before the index action is…

Ruby On Rails

1 min read


Feb 5

Fetch JavaScript

JavaScript can send network requests to the server and load new information whenever it’s needed. For example, we can use a network request to: Submit an order, Load user information, Receive latest updates from the server, …etc. The fetch() method is modern and versatile, so we’ll start with it. It’s…

Java Script

2 min read


Feb 16, 2021

Blockchain

Blockchain technology is most simply defined as a decentralized, distributed ledger that records the provenance of a digital asset. A blockchain is essentially a digital ledger of transactions that is duplicated and distributed across the entire network of computer systems on the blockchain. Each block in the chain contains a…

1 min read


Jan 28, 2021

Rails Nested Association using JSON-API

Rendering Rails Nested Association using JSON-API How to render a association using rails json-api. First lets create a model Patient, Doctor, and a joiner table of Appointment class Patient < ApplicationRecord has_many :appointments has_many :doctors, through: :appointments end class Doctor < ApplicationRecord has_many : appointments has_many : patients, through: :appointments end class Appointment < ApplicationRecord…

Rails

1 min read


Dec 21, 2020

Hypertext Markup Language Basic

Hypertext Markup Language Basic HTML stands for Hypertext Markup Language. It is the standard markup language for documents designed to be displayed in a web browser. How to we write a code for an HTML. <!DOCTYPE html> #lets a browser know it an HTML document. The <!DOCTYPE HTML> is always…

Html Basic

2 min read


Dec 2, 2020

Active Record CRUD Operations

Active Records provide an interface and binding between the tables in a relational database and the Ruby program code that manipulates database records. Each Active Record object has CRUD (Create, Read, Update, and Delete) methods for database access. …

Active Record

2 min read

Okechukwu Uneze

Okechukwu Uneze

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable