Sha256: f68d20071f2b0b00e6ce27aab04105326bdd5184fb42de8a828df11832fcbdec

Contents?: true

Size: 293 Bytes

Versions: 77

Compression:

Stored size: 293 Bytes

Contents

class Contact < ApplicationRecord
  validates :name, presence: true
  validates :age, presence: true, numericality: true, inclusion: { in: 20...100, message: "must be between 20 and 100" }
  validates :email, presence: true, format: { with: /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i }
end

Version data entries

77 entries across 77 versions & 1 rubygems

Version Path
rails_app_generator-0.2.30 after_templates/rag/tailwind_hotwire_form/contact.rb
rails_app_generator-0.2.29 after_templates/rag/tailwind_hotwire_form/contact.rb
rails_app_generator-0.2.28 after_templates/rag/tailwind_hotwire_form/contact.rb
rails_app_generator-0.2.27 after_templates/rag/tailwind_hotwire_form/contact.rb
rails_app_generator-0.2.26 after_templates/rag/tailwind_hotwire_form/contact.rb
rails_app_generator-0.2.25 after_templates/rag/tailwind_hotwire_form/contact.rb
rails_app_generator-0.2.24 after_templates/rag/tailwind_hotwire_form/contact.rb
rails_app_generator-0.2.23 after_templates/rag/tailwind_hotwire_form/contact.rb
rails_app_generator-0.2.22 after_templates/rag/tailwind_hotwire_form/contact.rb
rails_app_generator-0.2.21 after_templates/rag/tailwind_hotwire_form/contact.rb
rails_app_generator-0.2.20 after_templates/rag/tailwind_hotwire_form/contact.rb
rails_app_generator-0.2.19 after_templates/rag/tailwind_hotwire_form/contact.rb
rails_app_generator-0.2.18 after_templates/rag/tailwind_hotwire_form/contact.rb
rails_app_generator-0.2.17 after_templates/rag/tailwind_hotwire_form/contact.rb
rails_app_generator-0.2.16 after_templates/rag/tailwind_hotwire_form/contact.rb
rails_app_generator-0.2.15 after_templates/rag/tailwind_hotwire_form/contact.rb
rails_app_generator-0.2.14 after_templates/rag/tailwind_hotwire_form/contact.rb
rails_app_generator-0.2.13 after_templates/rag/tailwind_hotwire_form/contact.rb
rails_app_generator-0.2.12 after_templates/rag/tailwind_hotwire_form/contact.rb
rails_app_generator-0.2.11 after_templates/rag/tailwind_hotwire_form/contact.rb