Tutorials

Split your database seeds.rb by Rails environment
The seeds.rb file in a Ruby on Rails app can be a double-edged sword.On one hand, it's very useful! The seeds.rb file makes it easy to pre-populate your database with data for development or production. Unfortunately though, since each Ruby on Rai...

Improve Password Length Validation for BCrypt Compatibility by guilleiguaran
This Pull Request has been created because we identified a need to improve password length validation for BCrypt compatibility in the ActiveModel::SecurePassword module. The current validation only considers the character count, which may not accu...


Managing Multiple Users: Single Table Inheritance and Role-Based Authorization in Rails - DEV Community
One of the things about web development that keeps me coming back for more is the fact that there are so many different ways to solve a single problem. (This is also something about web development that I find incredibly overwhelming depending on ...


Setting an Actions secret with Octokit.rb - Ruby Example
There you go, I hope that saved you some time.If you have issues with the Octokit gem, I recommend going to their repo and looking at the source. I have found the docs are occasionally out of date with the latest release.These docs are useful to l...

A Ruby gem to simplify using Slack Block Kit | Rails and beyond
I put together slack_layout, a Ruby gem that makes building Slack’s Block Kit layouts easy while keeping everything organized.Any method like the one above should catch your eye. The blocks stuff seemed to be something particular from Slack. Indee...

