Latest Posts
Personal blog by Karina Baha.
-
CRUD Operations in Ruby on Rails. Let’s Build a Blog App
In this post, we’ll cover CRUD operations in Ruby on Rails. We’ll create a simple app and implement CRUD operations using Ruby on Rails 7.1.3 and Ruby 3.3.0. We will use Bootstrap to add some styles to our application.
-
Deploy a Ruby on Rails 7 App on Render for Free
Render is a cloud platform that allows developers to deploy their applications. The best part about Render is that it offers a free plan, which makes it easy for developers to get started. By default, Render automatically deploys GitHub and GitLab projects.
-
Direct Image Upload in Rails 7 Using Active Storage and Cloudinary
Active Storage is a Rails module used as a gateway to upload files to cloud services. Cloudinary is one such service and a complex platform that allows developers to store, transform, optimize, and deliver images and videos. Cloudinary has a free plan available, and it’s pretty easy to start with them. In this article, we…
-
Ruby on Rails Models Association Basics – Let’s Build a Bookstore App – Second Part
Building on the foundation laid in the first part of our tutorial, we’re poised to explore the dynamic functionalities of our bookstore application. In this segment, we’ll journey further into the realm of Active Record associations, focusing on the practical implementation of crucial operations: creating, updating, and deleting records. We’ll step through the process of…
-
Ruby on Rails Models Association Basics – Let’s Build a Bookstore App – First Part
Welcome to my tutorial focusing on Active Record associations in Ruby on Rails. Rails offers a powerful toolkit comprising six primary types of associations: belongs_to, has_one, has_many, has_many :through, has_one :through, and has_and_belongs_to_many. In this guide, we’ll delve into these associations while constructing a bookstore application using Ruby on Rails 7.1.2 and Ruby 3.2.2.
-
Ruby on Rails To Do App with Turbo
In this post, we’ll build a simple todo app with Ruby on Rails and Turbo. We’ll implement the ability to add, edit, delete and mark as completed tasks. Our app will have one page where we’ll display a list of tasks, and we’ll update them without refreshing the page or writing any JavaScript code. We’ll…
-
Confirmation Dialog Box in Ruby on Rails 7 with Turbo
Ruby on Rails 7 ships with Turbo, a framework that allows developers to speed up their applications without having to write a lot of JavaScript. Turbo Drive, part of the Turbo framework, performs background operations and modifies HTML without reloading the entire page.
-
Use Sweet Alert 2 with a Destroy Button in Ruby on Rails 7
In this post, we will discuss how we can integrate the Sweet Alert 2 library into a Rails 7 application. We will build a simple blog app and use SweetAlert2 for delete confirmation. We will use Rails 7.0.4 and Ruby 3.1.2.