Creating custom validations and custom mailers in Ruby on Rails

In this episode, I walk through the steps of running custom model validations and create a custom mailer in Ruby on Rails. The entire episode walks through creating a contact us API, from beginning with the migration and model, to actually sending the email itself.
šŸ¤Æ Support
  • https://www.patreon.com/davidwparker
  • https://www.buymeacoffee.com/davidwparker

ā±ļø Timestamps:
  • 00:00 - Introduction
  • 00:35 - Demo / Code Test coverage
  • 01:08 - migration, routes, controller, en.yml, model
  • 02:00 - hooks, validations (custom validation)
  • 04:30 - mailer
  • 06:28 - tests

šŸ’Œ Newsletter:
  • https://www.programmingtil.com/

šŸŖElsewhere:
  • Twitter: https://twitter.com/davidwparker
  • Twitter: https://twitter.com/programmingtil
  • GitHub: https://github.com/davidwparker

šŸ’­Concepts:
  • Custom validations in Ruby on Rails
  • Custom mailers in Ruby on Rails

šŸ“šResources:
  • https://github.com/davidwparker/programmingtil-rails/tree/ep26

šŸŽ¬ Subscribe!
  • http://bit.ly/subdavidwparker

My name is David W Parker and Iā€™m creating and publishing videos on ProgrammingTIL to help teach anyone and everyone who wants to code. Iā€™m a huge fan of Ruby on Rails, Svelte, TailwindCSS, and WebGL. Iā€™ve used React a lot in the past, as well as some Vue and AngularJS. Iā€™ve done some professional Python and Django. I like to create real applications and my tutorials will walk you through how to build something real from beginning-to-end.

ruby #rails #rubyonrails

Ā© programmingtil.com