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.

⏱️ 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

📚Resources:

🎬 Subscribe!

#ruby-on-rails #ruby

Creating custom validations and custom mailers in Ruby on Rails
2.60 GEEK