Displaying 1 result from an estimated 1 matches for "some_comment".
Did you mean:
some_command
2006 Aug 16
1
Creating a comments system for multiple types of content
...g, :null => false
t.column "body", :text, :null => false
t.column "model_type_id", :integer, :null => false
t.column "model_type", :varchar, :null => false
end
Then the data rows could look like these:
# This item is associated with news_item ID = 1
some_comment:
subject: "this is a comment"
body: "and this is its content"
model_type_id: 1
model_type: "news_item"
# This item is associated with news_item ID = 2
another_comment:
subject: "this is another comment"
body: "and this is another content&quo...