Displaying 1 result from an estimated 1 matches for "t1470176".
Did you mean:
1970176
2006 Apr 18
1
habtm and belongs_to one table
...:monitors
class Monitor < ActiveRecord::Base
has_many :posts, :as => user
class User < ActiveRecord::Base
has_many :posts # when a user *does* a post
belongs_to :monitor, :polymorphic => true
--
View this message in context: http://www.nabble.com/habtm-and-belongs_to-one-table-t1470176.html#a3974957
Sent from the RubyOnRails Users forum at Nabble.com.