-
A guide to creating forms in Ruby on Rails 6
At a high level, there are two ways of creating forms in Rails.1) We can create the entire form by hand using HTML just as we would in any static HTML .
-
Practical Applications of the Singleton Class in Ruby
The singleton class is rarely used in practice to modify the behavior of specific objects. Read on to learn a few practical applications that might pro.
-
Continuous Deployment with Rails
Continuous Deployment is the automation of deploying any code that gets merged into your main or release branch. We can easily set up GitHub Actions to.
-
Stub that automatically verifies that stubbed methods exist and the signatures match the original.
Sometimes fakes are a good choice. But the price is high. In particular, they make changing code harder. You rename a method, but all tests that stub t.
-
Modern encryption for Ruby and Rails
package Modern encryption for Ruby and RailsWorks with database fields, files, and stringsMaximizes compatibility with existing code and librariesMakes.
-
Truemail - configurable framework agnostic plain Ruby email validator/verifier. Verify email via Regex, DNS and SMTP
Email validation is a tricky thing. There are a number of different ways to validate an email address and all mechanisms must conform with the best pra.
-
RSpec - a gentle introduction to testing
Writing useful tests is as important as writing the right code. The good news is that with Ruby, testing the code is a friendly and grateful task. The .
-
Automatically migrate database when pushing to Heroku
I used to freak out when seeing this, but most of the time it is caused by me forgetting to run rake db:migrate after deploying a feature which has new.
-
Migrating Classic Slack Ruby Bots to Granular Permissions
Slack recently introduced granular permissions and is now requiring all new apps to use those. The old apps are called classic apps, and new apps are c.
-
Ruby Enumerable tally
For the Advent of Code, I was curious if there was a good way to do this in one line[1] (no technical reason, just because...)Not sure why, but it dawn.