hi i am trying to ensure that the username is unique when registering but im not sure how to do this
I've tried:
validates_uniqueness_of :username
but it doesnt work
it gives me this error:
undefined method 'validates_uniqueness_of' for #<UsersController:0x6c4fd2>
Any help please?