エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
ruby on rails - What's the difference between "validate" and "validates"? - Stack Overflow
記事へのコメント1件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
ruby on rails - What's the difference between "validate" and "validates"? - Stack Overflow
I added a validation to an objects using: validate :field, presence: true I found they do not giv... I added a validation to an objects using: validate :field, presence: true I found they do not give error messages. I changed them to validates and got the error messages. This ticket is relevant. I tried to add a custom validation with validates and got an error: You need to supply at least one validation I changed it to validate, and everything went along as expected. My understanding is to use v
2015/10/22 リンク