The goal of this cheatsheet is to make it easy to add hand-rolled authentication to any rails app in a series of layers.
First the simplest/core layers, then optional layers depending on which features/functionality you want.
|LANGUAGE/STACK||Ruby on Rails Version 4, 5, or 6|
First, Create a folder inside of
Put your CSV file
example.csv into the
lib/seeds folder. In the example below, the file is called
Make sure you've created a resource with the appropriate columns to match your seed data. The names don't have to match up.