Rails Bootcamp [Sesión 03]

Rails Bootcamp [Sesión 03]

Transcript

  1. 3.
  2. 13.
  3. 21.
  4. 23.

    app/models/person.rb class Person < ActiveRecord::Base before_save :count_pets def count_pets if

    self.email.nil? puts "No tiene mail" else puts "Yeih! #{self.email}" end end end