search for: open_ord

Displaying 3 results from an estimated 3 matches for "open_ord".

Did you mean: open_out
2007 May 20
1
beating a dead horse - proper association selection
okay... i have two models employee - id - username order - id - number - created_by - approved_by now created_by and approved_by are both id''s of employees. in most cases, two different employees. currently i do something like //controller @open_orders = Order.open_orders //model def self.open_orders find(:all, :conditions => [''is_open = ?'', true], :order => "created_on desc") end //view <% for order in @open_orders %> Order Number: <%=h order.number %><br /> <% end %> what type of...
2013 Sep 14
2
the problem of buying and selling
...owing: The idea is to write a function that asks how much volume (total quantity) you want to deal, and returns the profit. This generates a relationship between volume and profit, and with interpolation you can get the volumen for any given minimum-profit requirement. revenues <- function(open_orders, volumes) { # calculate revenue using a list of open orders and desirable "volumes" of goods # expecting volumnes as a vector, to test the revenue (total amont of money) # for each volume (total amount of goods to deal) in the 'volumes' volume <- sapply(1:length(open_or...
2006 Jul 18
0
Ruby on Rails Book question
Wondering if anyone is familiar with this part of the book. It''s in Part IV , the enhancements to the R4RMusic site, chapter 15, soft and hard enhancements. Following along it shows various methods being defined for work.rb (works model) However then it comes to a ''def open_orders''. Trying to figure out if this method is intended for work.rb or another model file. Not really clear. Seems more like an order.rb method. TIA Stuart