Displaying 1 result from an estimated 1 matches for "recent_top".
Did you mean:
recent_topic
2011 Mar 02
0
polymorphic_path not getting generated
Folks,
I am trying to use the Savage Beast plugin in a polymorphic way. I
have setup my model as below
# Leaving out other details from models
class Forum < ActiveRecord::Base
has_one :recent_topic, :class_name => ''Topic'', :order => ''sticky
desc, replied_at desc''
belongs_to :forum_owner, :polymorphic => true # Helps keep track
of which entity owns this forum
end
class Topic < ActiveRecord::Base
belongs_to :forum
end
class School <...