开发者

Rails for Zombies Level 2 Challenge 4

I'm not sure how to solve this. I tried rewatching the videos but it doesn't say how to link "presence" and "uniqueness" validations to zombie's name. Any suggestions?

Picture here: http://i.stack.imgur.com/2nAEs.pn开发者_StackOverflow社区g

Thanks


Simple as

validates :name, :presence => true, :uniqueness => true


it is giving this error on typing above code ArgumentError: You need to supply at least one validation

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜