My Blog

A collection of my insights

My latest Insight

  • Make ActiveRecord::Enum validation in Rails API application

    Nov 14, 2023

    Make ActiveRecord::Enum validation in Rails API application

    As all know, Before Rails version 7.1 When you assign an incorrect value to any record that has an enum as type, it normally raises an ArgumentError as Server Error status: 500 And, for those who do know, a Rails enum is a way to define a set of allowed…

  • Devise Token Auth vs Devise JWT

    Apr 8, 2023

    Devise Token Auth vs Devise JWT

    One of the most important considerations when creating a new Rails API application is making sure user authentication is implemented correctly. Determining the best strategy for deciding between numerous authentication methods and solutions, such as “Devise Token Auth” and “Devise JWT,” is essential…

  • Preventing SQL Injection for Rails Queries

    Jan 21, 2023

    Preventing SQL Injection for Rails Queries

    As a Rails developer, writing secure and efficient model methods that interact with the database is crucial. Recently, I discovered that using the Rails query API can prevent SQL injection and improve the security of your application. In this article, we will explore the basics of SQL injection and how…

  • User Authentication app in Ruby on Rails with Devise-JWT tutorial

    Nov 11, 2022

    User Authentication app in Ruby on Rails with Devise-JWT tutorial

    During my training a while ago, I had a lot of trouble setting up user authentication to generate a token based on the user payload of your choice, which is attached to every request that requires client-side authentication to identify the user on the server. After more research and reading…

  • How to become a successful software developer

    Nov 13, 2021

    How to become a successful software developer

    What are the key traits and qualities that every successful software developer is required to have? Previously I could never imagine that becoming a good software developer required Four major things that...

  • Session Cookies vs. A Devise-JWT for Authenticating Users in Ruby on Rails

    Aug 30, 2021

    Session Cookies vs. A Devise-JWT for Authenticating Users in Ruby on Rails

    This article will explain the differences between Devise-JWT and Sessions, as well as which one to use for authentication. Recently, I had to implement authentication on one of the Rails projects I was assigned to work on...

Think I’d be a good fit for your team or project?

Lets Talk