undefined method `active=' for #