You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/app/forms/validate/user.rb

11 lines
226 B

module Validate
class User
include ActiveModel::Model
attr_accessor :nickname, :lastname
validates :nickname, presence: true, length: { maximum: 10 }
validates :lastname, presence: true
end
end