Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不知道如何解决这个问题。我尝试重新观看视频,但它没有说明如何将“存在”和“唯一性”验证链接到僵尸的名字。有什么建议么?
图片在这里:http: //i.stack.imgur.com/2nAEs.png
谢谢
简单如
validates :name, :presence => true, :uniqueness => true
输入上述代码时出现此错误 ArgumentError: You need at least one validation