Posts - Page 9
Personal blog by Karina Baha.
-
Difference Between Path and URL in Rails
In Ruby on Rails Dec 6, 2021
In Rails, we often use the _path and _url helpers to link to various resources in our applications. But, what’s the difference between the two?
... -
Replace Confirm Dialog Box with Sweet Alert in Ruby on Rails 6
In Ruby on Rails Dec 2, 2021
In this post, we will discuss how we can integrate the Sweet Alert 2 library into a Rails 6 application. W... -
Nested Resources in Ruby on Rails. Let's Build a Dictionary!
In Ruby on Rails Nov 20, 2021
In this tutorial, we will deal with nested resources in Ruby on Rails. This is useful when there is a has_many association corresponding to a belongs_to association between two models. We want to e...
-
Play CSS Animation Only Once Per Website Visit
In JavaScript Nov 15, 2021
We have animated elements in the hero section of our website, but we do not want to play this animation all the time our users return to the home page where this hero section is. We want to play th...
-
Uploading Images in Rails 6 Using Active Storage, Trix and Cloudinary
In Ruby on Rails Nov 4, 2021
Active Storage is a Rails module used to upload files to a cloud service. Cloudinary is such a service and, in addition, a complex platform that enables developers to store, transform, optimize, and d...