search for: ordernumb

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

Did you mean: ordernum
2006 Mar 06
2
is "alias" reserved?
...I have an orders table which holds orders (pricing, statuses, etc). An orderDetails table which holds detailed line items (itemNumbers, unit prices, etc). Each order can have multiple shipping addresses, so I also have an addressbook table. Each orderDetail is tied to an addressbook entry via the ordernumber and addressbook alias, but this doesn''t seem to work for me. ------ class OrderDetail < ActiveRecord::Base set_table_name "orderDetails" belongs_to :order, :foreign_key => ''orderNumber'' has_many :addressbooks, :finder_sql => ''SELECT *...
2006 Feb 14
6
[newb] Find vs Find :all question
...d'' has_many :orders, :foreign_key => ''customerId'' end class Addressbook < ActiveRecord::Base belongs_to :account end class Order < ActiveRecord::Base set_primary_key "customerId" belongs_to :account has_many :orderDetails, :foreign_key => ''orderNumber'', :finder_sql => ''SELECT * '' + ''FROM orderDetails od '' + ''WHERE od.orderNumber = #{orderNumber}'' end class OrderDetail < ActiveRecord::Base set_table_name "orderDetails" belongs_to :order end ------...
2006 Mar 14
4
has_one
...' + ''FROM cardTypes ct '' + ''WHERE ct.id = #{cardType}'' #has_one :cardType, :foreign_key => ''id'', :conditions => ''id = ""#{cardType}""'' has_many :orderDetails, :foreign_key => ''orderNumber'', :finder_sql => ''SELECT * '' + ''FROM orderDetails od '' + ''WHERE od.orderNumber = #{orderNumber}'' end class CardType < ActiveRecord::Base set_table_name ''cardTypes'' belongs_to :order end Thank...
2005 Sep 23
1
Sortable list with Ajax and delete function - working example
Hi. I read most of the postings here but unfortunately I didin''t found a complete example which could be used. Of cource the ones who are professionals in javascript could implement the missing peaces from the puzzle. What I''m required to do is a tree (sortable list) where items can also be deleted and at each modification a function (ajax) is called to save the changes. For