search for: orderdetails

Displaying 5 results from an estimated 5 matches for "orderdetails".

Did you mean: order_details
2006 Feb 14
6
[newb] Find vs Find :all question
I''m playing out with writing an online store. So far it has accounts, addressbooks, and orders, and those 3 are tied together with an customer ID. I also have orderDetails, which are associated to the order via an order number. See models below... When I do the following I can access the orderDetails information just fine: @order = Order.find(params[:id]) # i pass it a customer id and i could access the orderDetails by doing this: <%for detail in @orde...
2006 Mar 06
2
is "alias" reserved?
I''m playing with an online store.... 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....
2006 Mar 14
4
has_one
...''SELECT shortName, longName '' + ''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...
2007 Aug 05
0
Newbie - Question on Parent child updating
All, I''ve just started Rails and Ruby a week or so ago. Please forgive me for my ignorance. I started writing a small test application to test some of my new knowledge and have hit a wall. Would like some best practices. I have 3 tables, as below... CREATE TABLE `carts` ( `id` int(11) NOT NULL auto_increment, `name` varchar(255) NOT NULL, `quantity` int(11) NOT NULL, PRIMARY
2012 Apr 21
3
Gráficos en R
Hola, Por favor, ¿me podéis referenciar algún libro de R que aborde en profundidad la generación de gráficos y almacenamiento de los mismos en fichero de salida?. Me refiero tanto a gráficos relativos a series temporales como a gráficos/tablas que recojan datos numéricos. Gracias de antemano. Atte. Eva Prieto Castro [[alternative HTML version deleted]]