Blog

Page 598 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Converting camel case to underscore case in ruby
formattingruby-on-railsstring

Converting camel case to underscore case in ruby

Published on September 2, 2023

# Converting Camel Case to Underscore Case in Ruby: A Smooth Solution! šŸ«šŸ”€šŸ”  Are you tired of staring at those pesky Camel Case strings, longing for a way to convert them into more manageable Underscore Case? Look no further! In this blog post, we will d

Cover Image for How to return an empty ActiveRecord relation?
ruby-on-rails

How to return an empty ActiveRecord relation?

Published on September 2, 2023

# How to Return an Empty ActiveRecord Relation šŸ’” Have you ever found yourself needing to return an empty ActiveRecord relation, instead of an empty array, in certain cases? Don't worry, you're not alone! In this blog post, we'll explore a common issue fa

Cover Image for SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
ruby-on-rails

SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

Published on September 2, 2023

šŸ”’šŸ”€ **Getting to the Root of SSL_Connect Error: Certificate Verify Failed** šŸ”Ž So, you're using Authlogic-Connect for third-party logins and encountered an SSL_connect error with the specific message "SSL_connect returned=1 errno=0 state=SSLv3 read serve

Cover Image for difference between collection route and member route in ruby on rails?
ruby-on-rails

difference between collection route and member route in ruby on rails?

Published on September 2, 2023

šŸ“šŸ”„ **Unraveling the Mystery: Collection Routes vs Member Routes in Ruby on Rails** šŸ”„šŸ“ Welcome, fellow developers, to another exciting edition of our tech blog! Today, we're diving deep into the enigmatic world of collection routes and member routes in

Cover Image for WARNING: Can"t verify CSRF token authenticity rails
jqueryruby-on-rails

WARNING: Can"t verify CSRF token authenticity rails

Published on September 2, 2023

# SOLVING THE CSRF TOKEN AUTHENTICITY ERROR IN RAILS šŸ˜±šŸ”’ Are you facing the dreaded "Can't verify CSRF token authenticity" warning in your Rails application? Don't panic, I've got your back! šŸ¤ ## Understanding the Problem šŸ” Before diving into solutio

Cover Image for Run a single migration file
ruby-on-rails

Run a single migration file

Published on September 2, 2023

# **šŸš€ How to Run a Single Migration in a Snap!** > Have you ever found yourself staring at a lengthy list of migration files, desperately searching for that one specific migration you need to run? Don't worry, you're not alone! šŸ¤·ā€ā™‚ļø Running a single mig

Cover Image for how to permit an array with strong parameters
arraysruby-on-rails

how to permit an array with strong parameters

Published on September 2, 2023

šŸ“**How to Permit an Array with Strong Parameters** Are you having trouble saving ids from an associated model in your Rails 4 app while it worked seamlessly in the Rails 3 version? You might be facing an issue with strong parameters. Don't worry, we've g

Cover Image for A cron job for rails: best practices?
rakeruby-on-rails

A cron job for rails: best practices?

Published on September 2, 2023

## šŸ•’ A Cron Job for Rails: Best Practices? šŸš€ So, you want to run scheduled tasks in your Rails environment? Good news! You have a few options at your disposal. Let's dive into the best practices and find the perfect solution for your needs. āš™ļø ### šŸ“ C

Cover Image for Disable Rails SQL logging in console
ruby-on-rails

Disable Rails SQL logging in console

Published on September 2, 2023

# How to Disable Rails SQL Logging in Console šŸš«šŸ’¾ Are you tired of scrolling through pages of SQL query logs when trying to debug in the Rails console? Look no further! In this post, we'll explore an easy solution to disable SQL query logging so you can

Blog | Matheus Mello