Displaying 3 results from an estimated 3 matches for "item_type_id".
2006 Apr 22
6
STI and type tables?
...STI, I would have something like:
create_table :items do |t|
t.column "type", :string
t.column "title", :string
end
But if I want to store those type values in a separate table, such
that I have ...
create_table :items do |t|
t.column "item_type_id", :string
t.column "title", :string
end
create_table :item_types do |t|
t.column "name", :string
end
How would I do that?
Bruce
2006 Jan 11
0
Limit attributes written out by to_yaml
...-weight:bold\">When a good has
positive network externalities,
this means that when using the product:</span>"
order_number: 26
item_alias: ''''
image_path: ''''
maximum_number_responses:
maximum_length:
item_type_id: 3
database_sql: ''''
other_text: "Other, please specify"
required_yn: N
However there
--
Posted via http://www.ruby-forum.com/.
2006 Jul 19
5
weird result for a custom attr reader!
...id"=>"1", "id"=>"1", "description"=>nil, "category_id"=>"7"},
@category=#<Category:0x241557c @attributes={"name"=>"Wide", "id"=>"7",
"description"=>nil, "item_type_id"=>"1", "parent_id"=>"2"}>>
Anyone can tell me what I am doing wrong?!? This is puzzling me to no
end!
Thanks
--
Posted via http://www.ruby-forum.com/.