Using YAML with Ruby on Rails
Web-Crunch
I find YAML to be a godsend when rendering static data that doesn't necessarily need to be a part of a database using Ruby on Rails.
In the Ruby ecosystem, YAML
is the de facto standard for setting and sourcing configurations or various settings that more or less remain constant.
The Ruby on Rails framework uses YAML
heavily for things such as localization, configuration, and more, but you can tap into YAML
files in your own applications.
For my course Hello Rails (hellorails.io), I used YAML to render almost all the content on the marketing page you see when you visit the site. It didn't make much sense to host that data in a database, and it was way quicker to update and fine-tune over time.
Continue reading: https://web-crunch.com/posts/using-yaml-with-ruby-on-rails
======
Hi, My name is Andy Leverenz, and I work as a product designer and developer. For fun, I design, code, and write. Check out my blog, Web-Crunch: https://web-crunch.com, where I publish design and development tutorials with the occasional vlog.
โฅ๏ธ Sponsor me on GitHub https://github.com/sponsors/justalever
โ๏ธ Keep me awake. Buy me a coffee https://www.buymeacoffee.com/webcrunch
๐ฐ One-Click Subscribe: https://www.youtube.com/user/webcrunchblog?sub_confirmation=1
๐ป Previously published at: https://web-crunch.com/posts/using-yaml-with-ruby-on-rails
๐จ Rails UI - Professionally designed components and templates for Ruby on Rails https://railsui.com
๐Ruby on Rails Course: HELLO RAILS https://hellorails.io
๐ป Check out the blog: https://web-crunch.com
๐ฆ Check out my personal site: https://justalever.com
๐ Links: Weekly Newsletter: https://digest.web-crunch.com/ Twitter: https://twitter.com/webcrunchblog Github: https://github.com/justalever
๐Check out my book on UX Design: "LUXD: Learn User Experience Design" https://web-crunch.com/products/luxd
๐ Check out my FREE book on Tumblr Theming: "Pro Tumblr Theming" https://web-crunch.com/products/ptt ... https://www.youtube.com/watch?v=5rf_Qf7vYhw
42624215 Bytes