forgeplus/app/forms/add_school_apply_form.rb

10 lines
268 B
Ruby
Raw Permalink Normal View History

2020-03-09 00:40:16 +08:00
class AddSchoolApplyForm
include ActiveModel::Model
attr_accessor :name, :province, :city, :address, :remarks
validates :name, presence: true
# validates :province, presence: true
# validates :city, presence: true
# validates :address, presence: true
end