On 1/5/06, Ezra Z. email@example.com wrote:
type is a reserved word in ruby for now. So call your type field
something else like mytype or kind.
Actually, you can just explicitely define #type and #type= in the model
class Thing < ActiveRecord::Base
def type=( new_type )
write_attribute :type, new_type
Alice came to a fork in the road. “Which road do I take?” she asked.
“Where do you want to go?” responded the Cheshire cat.
“I don’t know,” Alice answered.
“Then,” said the cat, “it doesn’t matter.”
- Lewis Carrol, Alice in Wonderland