Using YAML files to store data in Rails
4 Apr, 2023
Related videos
In this episode, I show you how to store data in YAML files alongside your code, rather than in your database. We’ll use YAML.load_file to read the content and encapsulate all this logic nicely into a PORO (Plain old Ruby object).