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
精彩评论