Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Rails Bootcamp [Sesión 03]

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.

Rails Bootcamp [Sesión 03]

More Decks by A. Felipe Cabargas Madrid

Other Decks in Programming

Transcript

  1. 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