Why doesn't this code produce the desired result?
    def check_beta_code
		beta_code_array = ['AAAAAAAAAA', 'BBBBBBBBBB', 'CCCCCCCCCC', 'DDDDDDDDDD', 'EEEEEEEEEE']
		
		if false == beta_code_array.include?(:beta_code)
			errors.add(:beta_code, "Invalid Beta Code")
		end
	end

I create a user, **user = User.new{:beta_code=>'AAAAAAAAAA'}** and then **user.save #=> false** and then i do **user.errors #=>{:beta_code=>["Invalid Beta Code"]}**

Why is it giving the error even though :beta_code is equal to one of the values?
Help!
Why doesn't this code produce the desired result?
===

    def check_beta_code
		beta_code_array = ['AAAAAAAAAA', 'BBBBBBBBBB', 'CCCCCCCCCC', 'DDDDDDDDDD', 'EEEEEEEEEE']
		
		if false == beta_code_array.include?(:beta_code)
			errors.add(:beta_code, "Invalid Beta Code")
		end
	end

I create a user, **user = User.new{:beta_code=>'AAAAAAAAAA'}** and then **user.save #=> false** and then i do **user.errors #=>{:beta_code=>["Invalid Beta Code"]}**

Why is it giving the error even though :beta_code is equal to one of the values?
Help!