hey all, 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 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')
if @user.save redirect_to :list else render :action=>'createname' end
thanx in advance