Last active
December 8, 2015 09:23
-
-
Save YumaInaura/7cbba428954e31d051f9 to your computer and use it in GitHub Desktop.
Rails | モデルの validate 文が効かない? ref: http://qiita.com/Yinaura/items/c9e7e0629165ee0032f7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Example < ActiveRecord::Base | |
| - validate :user_id, presence: true | |
| + validates :user_id, presence: true | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment