Closed inspire22 closed 14 years ago
class User < ActiveRecord::Base validates_uniqueness_of :email, :message => "is already in use on an account. Please use one email per account" end
u=User.first u.reload
-> ArgumentError: wrong number of arguments (0 for 1) method reload in testing.rb at line 40
Fixed in 0.3.8 & 1.0.0.rc.1
Thanks!
It looks like AR3 has built in support for validation reflections? What are the differences?
class User < ActiveRecord::Base validates_uniqueness_of :email, :message => "is already in use on an account. Please use one email per account" end
u=User.first u.reload
-> ArgumentError: wrong number of arguments (0 for 1) method reload in testing.rb at line 40