Oh, yeah. You might be right with the reserved word!

avatar.rb:
class Avatar < ActiveRecord::Base
  attr_accessible :name, :level, :current_xp, :overall_xp, :gender_cd
  as_enum :gender, :female => 0, :male => 1
  has_one :user
  has_many :attributes
...

attribute.rb:
class Attribute < ActiveRecord::Base
  belongs_to :attribute_type
  belongs_to :avatar

Do I need to rename the whole model now?

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to