I use validates_uniqueness_of :name.
In script/console when i do find_or_create_by_name(‘bob’) and that
bob already exists I get @errors=> name has already been taken
But in my createname.rhtml it doesn’t display anything though I did
put <%= error_messages_for :user %>.
this is my controller:
@user = find_or_create_by_name(‘bob’)
thanx in advance