":allow_blank is an option that will "disable" several of the validators, but not the presence validator."

suginoysuginoy のブックマーク 2014/02/28 20:42

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

Understanding Rails validation: what does allow_blank do?

    I'm quite new to Rails and found a little snippet to validate presence and uniqueness step by step: first check presence, then check uniqueness. validates :email, :presence => true, :allow_blank =>...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう