Unique usernames in Devise for Rails
You should use uniqueness validator. Add following into user.rb:
validates_uniqueness_of :username
more about this validator
You should use uniqueness validator. Add following into user.rb:
validates_uniqueness_of :username
more about this validator