search for: inventoryitems

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

Did you mean: 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 good place to put this logic. I''ve tried to
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
2006 Mar 15
1
An Association Problem: AR::Base.find{:include} and n-deep association traversal
Dear List, I''m using Edge Rails. I have a Model with Items for purchase. Each Item is of a certain brand. Class Brand < ActiveRecord::Base end Class Item < ActiveRecord::Base belongs_to :brand end The problem domain is that I''d like to create a separate Inventory list of Items. This includes the date of entry into inventory and date of exit from inventory (ie
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