similar to: Easy Question, I Think

Displaying 20 results from an estimated 500 matches similar to: "Easy Question, I Think"

2006 Jan 12
0
Easy Question, I Think [re-post, sorry if dupe]
I am just getting started with Rails, don''t know any Ruby, and don''t quite even get object oriented programming yet. I have tweaked my schema to The Rails Way and have generated a bit of scaffolding. I am trying to create a new Part, which references a PartName and a PartNumber. I can create a PartNumber on the fly, but the PartName has to exist. I have an inelegant solution
2006 Jan 12
1
Form Entity Names for Child Objects
In my controller, I do this to instantiate and populate my Part, PartName and PartNumber objects. def edit @part = Part.find(params[:id], :include => [:part_name, :part_number]) end But in the view, this doesn''t refer to the right object. I somehow need to indicate that the part_name object is a child of the part object. <%= text_field_with_auto_complete :part_name,
2006 Mar 14
1
Dynamic Finders with _or_create Don''t Work?
What could cause this? >> sdfl=PartNumber.find_by_part_number("1111111") => #<PartNumber:0xb78fc744 @attributes={"id"=>"11601", "part_number"=>"1111111"}> >> sdfl=PartNumber.find_or_create_by_part_number("1111111") NoMethodError: undefined method `find_or_create_by_part_number'' for PartNumber:Class
2005 Dec 14
4
find_by_ issue
In the Agile RoR book, page 219 (softcover version) they talk about the fact you can use the methods: find_by_ and find_all_by_ and fill in the last piece with a valid column name. So I have a database table called "parts" and the following columns: id partname partnumber vendor I do the following: (connection to DB already established) class Part < ActiveRecord::Base end
2006 Jul 28
0
i need help migrating an old table
i have this big table that has columns: partnumber, 1piece-price-break, 10K-piece-price-break, 25k, etc... i want to split this into two tables: part_number, id and price_break, price, product_id so that, you know, the price-break columns are not stuck at fixed values; different parts can have differnt numbers of price-breaks, etc is there a ruby way to do this? i have navicat, but i
2010 Apr 09
0
[PATCH node] fix iscsi installation problems
This patch fixes a few problems encountered with installing to an iscsi backed root partition as well as a normal local disk install. --- scripts/ovirt-config-boot | 10 ++++++---- scripts/ovirt-config-networking | 8 +++++--- scripts/ovirt-config-storage | 17 ++++++++++++++++- scripts/ovirt-functions | 27 ++++++++++++++++++--------- 4 files changed, 45 insertions(+),
2010 May 10
1
[PATCH node] RESEND: fix iscsi installation problems
This patch fixes both local installation and iscsi installation issues --- scripts/ovirt-config-boot | 10 ++++++---- scripts/ovirt-config-networking | 8 +++++--- scripts/ovirt-config-storage | 17 ++++++++++++++++- scripts/ovirt-functions | 27 ++++++++++++++++++--------- 4 files changed, 45 insertions(+), 17 deletions(-) diff --git a/scripts/ovirt-config-boot
2010 Mar 23
1
[PATCH node][RFC] Fix uninstall to detect and cleanup correct partitions
Previous implementation had staticly defined partitions to remove. This would break in the case of split Root and HostVG devices. Signed-off-by: Mike Burns <mburns at redhat.com> --- scripts/ovirt-config-boot | 11 +-------- scripts/ovirt-config-uninstall | 49 ++++++++++++++++++++++++--------------- scripts/ovirt-functions | 27 ++++++++++++++++++++++ 3 files changed, 58
2010 Mar 23
0
[PATCH node] Fix uninstall to detect and cleanup correct partitions
Previous implementation had staticly defined partitions to remove. This would break in the case of split Root and HostVG devices. Signed-off-by: Mike Burns <mburns at redhat.com> --- scripts/ovirt-config-boot | 11 +-------- scripts/ovirt-config-uninstall | 48 ++++++++++++++++++++++++--------------- scripts/ovirt-functions | 33 +++++++++++++++++++++++++++ 3 files
2006 Jan 28
1
referencing a table
I am trying to use auto_complete_for to reference a different table. in my clients_controller.rb file auto_complete_for :case_manager :case_manager.name ^^^^^^^^^^^^ this is not the clients table my models/clients.rb has: has_one: case_manager The above ''auto_complete_for'' line in clients_controller.rb
2010 Mar 24
2
[PATCH node][REPOST 1/2] Fix uninstall to detect and cleanup correct partitions
Previous implementation had staticly defined partitions to remove. This would break in the case of split Root and HostVG devices. Signed-off-by: Mike Burns <mburns at redhat.com> --- scripts/ovirt-config-boot | 11 +-------- scripts/ovirt-config-uninstall | 48 ++++++++++++++++++++++++--------------- scripts/ovirt-functions | 33 +++++++++++++++++++++++++++ 3 files
2010 Jan 19
1
PGError: ERROR: operator does not exist: character = integer
Hi, I''m using PostgreSql database with the rails application,In a functionality I''m trying to compare two attributes in a condition, one is of type varchar and other the Integer. While doing so i''m getting the error as below. ActiveRecord::StatementInvalid: PGError: ERROR: operator does not exist: character = integer LINE 5: WHERE PART.part_number =
2014 Nov 10
1
Boot fails in a VMware player VM - syslinux 6.03
On 10/11/2014 10:46, Thomas Schmitt wrote: > Hi, > > i downloaded > http://slint.fr/misc/testing/slint64-14.1_syslinux.6.03.iso > > Inspection by xorriso-1.3.8: > > xorriso -indev slint64-14.1_syslinux.6.03.iso \ > -report_el_torito plain \ > -report_system_area plain > > yields > > El Torito catalog : 46 1 >
2006 Dec 01
1
group by
Dear R-community, I started using R to control yield and output from different factories by production week. A typical example is below. Location Week ShippedWafer SortedWafer UnsortedWafer WaferYield GoodDie A 47 9 4 5 0.476 -12 B 40 5 5 0 -0.3262 -9 B 48 2 1
2016 Apr 02
2
Changes to get CD to boot on EFI System.
Hi, Didier Spaier wrote: > http://slint.fr/testing/slint64-14.1_syslinux.6.03/slint64-14.1_syslinux.6.03.img This looks like the content of an EFI system partition. Exactly what i need for experiments. Thanks a lot. (slint64-current-goofiboot.iso and slint64-current-efi-stub.iso were already in my collection.) It boots to "Slint installer for Slackware64-14.1" by:
2005 Aug 18
1
Auto Complete, works as adverrtised?
I''m trying to use the auto complete now and I get: undefined method `auto_complete_for'' for #<ProductsController:0x40a44338> My code is: def auto auto_complete_for :product, :title end Just like in the "view source" div from the demo. Well, almost like it. Am I missing .rb library somewhere? thanks Jacob
2006 Apr 23
0
Complex Database Associations
Hi All, I''m running into some issues with a fairly complex database structure. I have 4 tables: Products - id - name Productsitems - id - product_id - name Units - id - product_id - serialnumber Unitparts - id - productsitem_id - unit_id - partnumber - serialnumber What I''m attempting to do is to create a page where, after selecting which product I''m entering, I
2014 Jul 30
2
isohybrid: slint64-14.1.iso: unable to find mac efi image
Hi, On 29/07/2014 23:19, Thomas Schmitt wrote: > A good opportunity to brag with xorriso's boot inspection > features (since xorriso-1.3.8): Yes! I've upgraded libburn, libisofs and libisoburn so now I can play with it too ;) > I forgot to advise (or misadvise) -isohybrid-apm-hfsplus with > the image /isolinux/efiboot.img . So we only got one APM > partition here. A
2006 Jan 28
2
javascripts
Trying to use auto_complete_for which works fine on my home system. I see that when I use <%= javascript_include_tag "defaults" %> that when used, the webrick reports GET /javascripts/prototype.js GET /javascripts/dragdrop.js GET /javascripts/effects.js GET /javascripts/controls.js but on the system that I am trying to develop on and doing similarly, the webrick only reports
2006 Jul 20
4
Help with Rails and postgres with sequence numbers (global?)
Hello, I am building an Rails applications that has to integrate an legacy system (lxoffice) (schema at: http://www.lx-office.org/uploads/media/DB_Schema_2.1.1_R_393_17_03_2005_.pdf). They somehow use global ids (global for some tables). I can not change the schema and still I want to use Rails to access it and not pure SQL. When I try to insert a record I get the following message: