没有合适的资源?快使用搜索试试~ 我知道了~
validation_hints:验证提示
共11个文件
rb:3个
yml:1个
md:1个
需积分: 9 0 下载量 11 浏览量
2021-06-02
22:45:21
上传
评论
收藏 9KB ZIP 举报
温馨提示
验证提示 提供源自模型验证的提示。 安装 gem 'validation_hints' 例子 class Person < ActiveRecord xss=removed> true validates :password , :length => { :within => 1 ... 5 } end Person . new . hints [ :name ] = > [ "can't be blank" ] Person . new . hints [ :password ] = > [ "must not be shorter than 1 characters" , "must not be longer than 4 characters" ] Person . new . hints . messages =
资源推荐
资源详情
资源评论
收起资源包目录
validation_hints-master.zip (11个子文件)
validation_hints-master
Rakefile 51B
Gemfile 38B
validation_hints.gemspec 1KB
.document 55B
.gitignore 191B
lib
active_model
hints.rb 10KB
validation_hints
locale
en.yml 1KB
version.rb 74B
validation_hints.rb 681B
README.md 760B
LICENSE.txt 1KB
共 11 条
- 1
资源评论
靚兔
- 粉丝: 34
- 资源: 4637
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功