search for: workorders

Displaying 9 results from an estimated 9 matches for "workorders".

Did you mean: workorder
2005 Nov 30
3
Downcasing Legacy Table Column Names
I''m looking for the simplest way to *automatically* downcase the attribute names of Models mapped to legacy tables that use upper case. eg: class Workorder < ActiveRecord::Base set_table_name "WORKORDER" end which has "NAME" as an attribute can use "name" as an attribute. currently: workorder = Workorder.find(1) workorder.NAME # =>
2006 Jan 06
2
How do I reference eagerly loaded Models in the View?
...can paste the sql dump, but it looks good to me - and runs well independantly), but it seems that I''m referencing the eagerly loaded data in a way that activerecord doesn''t understand (my assumption) - thus I''m getting a tonne of additional queries. [first, the domain: WorkOrders has_many: WorkOrderItems && WorkOrderItems belongs_to :WorkOrder WorkOrderItems belongs_to :ProductsAndServices secondly, the controller looks like: @work_order = WorkOrder.find(params[:id]) @work_order_items = @work_order.WorkOrderItems.find(:all, :include => [:WorkOrder, :Prod...
2006 Jan 10
1
sql server & linux: left join problem
I''ve got a left join problem of some sort connecting from linux FreeTDS/ODBC to SQL Server. It''s similar to the false post I had earlier, but this is a real problem. Here''s my code: def find_recipes_for_workorder @recipe_pages, @recipes = paginate_with_sort :recipes, :per_page => 10, \ :joins => ''left join workorder on
2006 Jan 05
0
Keep the Queries Down or "Referencing eagerly loaded models"
...(I can paste the sql dump, but it looks good to me - and runs well independantly), but it seems that I''m referencing the eagerly loaded data in a way that activerecord doesn''t understand (my assumption) - thus I''m getting a tonne of extra queries. [first, the domain: WorkOrders has_many: WorkOrderItems && WorkOrderItems belongs_to :WorkOrder WorkOrderItems belongs_to :ProductsAndServices secondly, the controller looks like: @work_order = WorkOrder.find(params[:id]) @work_order_items = @work_order.WorkOrderItems.find(:all, :include => [:WorkOrder, :Pro...
2006 Jan 10
1
sql server freetds/odbc question
I''m having an error from Linux via freeTDS/ODBC to SQL Server with cod that runs fine against SQLite and MySQL. Here''s the code: def find_recipes_for_workorder_by_id @recipe_pages, @recipes = paginate_with_sort :recipes, :per_page => 10, \ :conditions => ["recipe.workorder_id = ?", params [:workorder]] render :template =>
2007 Apr 14
5
SAMBA Problem - Users take ownership
Hi, I have a problem with my Samba/WinBIND implementation. In folders shared by multiple people the last one to access and modify a file takes ownership of the file and changes the permissions so other users cannot make changes to the same file: [root@atlas PLANNING RECORDS]# cd REGIONAL\ 1\ AIRLINE\ DOCS/ [root@atlas REGIONAL 1 AIRLINE DOCS]# ls -al total 1232 drwxrws---+ 8 root
2009 Oct 21
1
megatec_usb and "fry's" UPS
Gidday all - I've got a 1700VA dynamix UPS which is USB. The previous model (with a serial port) worked wonderfully with megatec, but this new one with USB is not working. It feels like the kernel is not handing the USB device properly. The web has not yeilded any useful info. What can I do from here? I'm not sure if its a kernel problem or a UPS config problem, but I'm hoping
2009 Oct 20
1
megatec_usb and "fry's" UPS
Gidday all - I've got a 1700VA dynamix UPS which is USB. The previous model (with a serial port) worked wonderfully with megatec, but this new one with USB is not working. It feels like the kernel is not handing the USB device properly. The web has not yeilded any useful info. What can I do from here? =========================================== [root at hera ups]# lsusb Bus 006 Device 002:
2006 Aug 02
10
Ruby deamon
We are building a web-based application with Ruby on Rails and MySQL backend. The client now wants us to add various workflow features that will eventually expand into SOAP web services. These workflow features include tasks such as automatically sending reminders for due tasks, or if a particular set of information hasn''t been logged by a certain time to automatically send an email