Using find_or_initialize on Rails 5 Mastering find or initialize in Rails 5 A Simplified Approach to Data Management When working with databases in Rails its common to need to create new records w 2 min read 07-10-2024 6
Using `assign_attributes` saves `has_many through:` association immediately Rails Magic Using assign attributes for Instant has many through Association Updates Lets dive into a common challenge faced by Rails developers working with ha 2 min read 07-10-2024 7
Rails 5 API doesn't have ActionDispatch::ParamsParser as a middleware Rails 5 API Why Action Dispatch Params Parser is Missing and How to Handle It Problem When building a Rails 5 API you might encounter an error related to Action 2 min read 06-10-2024 7
Should I validate the type column? (Rails, STI) Validating the type Column in Rails with Single Table Inheritance STI Single Table Inheritance STI is a powerful feature in Rails that allows you to represent d 2 min read 06-10-2024 9
How to properly use the gem 'attr_encrypted' during a migration Encrypting Your Data A Guide to Using attr encrypted During Migrations Protecting sensitive data is paramount in any application The attr encrypted gem offers a 2 min read 05-10-2024 8
ActiveSupport::MessageEncryptor::InvalidMessage (ActiveSupport::MessageEncryptor::InvalidMessage) Issue in Rails application Understanding the Active Support Message Encryptor Invalid Message Issue in Rails Applications In the realm of Ruby on Rails development developers often encoun 3 min read 17-09-2024 20
RoR 5.0.0 ActionCable wss WebSocket handshake: Unexpected response code: 301 Troubleshooting Unexpected Response Code 301 in Action Cable Web Socket Handshake This article addresses a common error encountered when configuring Action Cabl 2 min read 06-09-2024 12
How to get url of Active Storage image How to Get the URL of Active Storage Images A Comprehensive Guide Active Storage is a powerful feature in Rails that simplifies the process of attaching files t 2 min read 05-09-2024 18
How to pass options like `only_path: true` and `anchor:` to `url_for` when generating a route from an array or object (instead of from a hash) The Quest for Efficient Path Generation in Rails Beyond url for In Rails generating URLs is a breeze with the url for helper But what if you only need the path 2 min read 05-09-2024 16
ActionController::InvalidAuthenticityToken in ActiveAdmin::Devise::SessionsController#create Debugging Action Controller Invalid Authenticity Token in Active Admin A Comprehensive Guide The dreaded Action Controller Invalid Authenticity Token error in A 3 min read 05-09-2024 26
In Rails 5, is there a way to modify the underlying params in a controller? Or give it a default? Manipulating Rails 5 Params A Deep Dive In Rails 5 we often need to work with request parameters params within our controllers While you can access and view the less than a minute read 05-09-2024 21
The issue to write string in double quotes in the CSV How to Write Strings in Double Quotes in CSV Files Using the CSV Gem When working with CSV files in Ruby you might encounter the need to enclose strings within less than a minute read 05-09-2024 18
Rails 5: How Do I Set Up a Merge Tool to use for rails app:update? Setting Up a Merge Tool for Rails 5 app update on mac OS Upgrading your Rails application can be a daunting task especially when dealing with configuration file 3 min read 05-09-2024 14
Rails 5.1.7 cache methods are not working Rails 5 1 7 Cache Methods Not Working Understanding the Argument Error In Rails 5 1 7 using the Rails cache fetch method to store data in the cache often result 2 min read 01-09-2024 17
Rails web in docker container doesn't reload Solving the Rails Web in Docker Container Doesnt Reload Headache Developing a Rails application within a Docker container can be incredibly efficient but it oft 2 min read 30-08-2024 20