search for: inventoryitem

Displaying 4 results from an estimated 4 matches for "inventoryitem".

2008 Nov 19
2
Where should I put "prerequisite logic"?
Hi there, I have this model called InventoryItem. Every time an InventoryItem is created (through the CharactersController and the create_item action) I need to update others tables and make lookups in other tables, to check if the Character has the prerequisites to actually create the InventoryItem. My problem is that I cannot seem to find a go...
2006 Mar 24
6
Microsoft SQL Server has me stumped
I''m tinkering around with an old legacy table in SQL Server 2000. Ruby 1.8.4, most recent ADO.rb file from RubyForge, Rails 1.0 Here''s the model: class InventoryItem < ActiveRecord::Base set_table_name "[_SMDBA_].[_INVENTOR_]" set_primary_key "sequence" end Everything works fine. I can retrieve records without issue. However, when create a new instance of InventoryItem, there are no attributes returned! i = InventoryItem.new #&lt...
2006 Mar 15
1
An Association Problem: AR::Base.find{:include} and n-deep association traversal
...e a separate Inventory list of Items. This includes the date of entry into inventory and date of exit from inventory (ie sale). Because each Item can potentially be sold back into the system, and we want to maintain a historical record, this next class (which I''m choosing to call InventoryItem) is not just a simple list of items - each item may have many records in this list. But each invoice_item is only ever associated with ONE Item. Class InventoryItem < ActiveRecord::Base belongs_to :item end and Items gets modified to: Class Item < ActiveRecord::Base belongs_to :brand...
2006 Aug 15
6
try creating a table for your model
Railers: Greetings from the low end of the learning curve. I have installed all the prerequisites on Win32, including a lite MySQL database with a table in it called Inventory. Then I run this command line... ruby script/generate ajax_scaffold Inventory ...and I get this error message: error Before updating scaffolding from new DB schema, try creating a table for your model