search for: wrter

Displaying 1 result from an estimated 1 matches for "wrter".

Did you mean: writer
2008 Feb 11
1
STI question
Hi, I am learning Single Table Inheritance and have a question. In my application, a message may be written by a user or by a guest. Thus a writer of a message is virtually associated either to a user or a guest. class Message < ActiveRecord::Base end class UserMessage < Message belongs_to :writer, :class_name => ''User'' end class GuestMessage < Message