search for: forum_own

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

Did you mean: forum_owner
2011 Mar 02
0
polymorphic_path not getting generated
...he 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 < ActiveRecord::Base has_many :forums, :as => :forum_owner end Now in the index.html.erb for forum I had the following line...