I have an activation model that when constructed should set the key
(column in the activations table) to test.
class Activation < ActiveRecord::Base
this.key = “test”
When i do ac = Activation.new I gget
NoMethodError: You have a nil object when you didn’t expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.include?
method_missing' from C:/Documents and Settings/AIR14607/My Documents/prive/rails/ TeamGeist/app/models/activation.rb:5:ininitialize’
from (irb):2:in `new’
Someone knows why?