Displaying 15 results from an estimated 15 matches for "partnumb".
Did you mean:
partnum
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_c...
2006 Jan 11
0
Easy Question, I Think
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 that works, but does not
properly exploit the validation because I don''t get back the
appropriate errors when a PartName is not existent or a PartNumber
fails to be created. All I get is...
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 that works, but does not
properly exploit the validation because I don''t get back the
appropriate errors when a PartName is not existent or a PartNumber
fails to be created. All I get is...
2008 Dec 13
2
What is "The Rails Way" to do this?
...or "newAlt()" is:
// using DOM create new input box for alternate part
function newAlt() {
var html = "<input style=''background-color:#FFFFCC'' ";
html += "type=''text'' id=''rowcol'' name=''partalternate.0.altpartnumber'' ";
html += "joinkey=''partid=<?=$partid?>'' ";
html += "attrib=''unique'' size=''20'' ";
html += "onChange=''cellTripolar(this)''>\n";
document.getElementById("partnu...
2006 Dec 01
1
group by
...0.476 -12
B 40 5 5 0 -0.3262 -9
B 48 2 1 1 5.092 18
This output was generated from the following sample data. The complete list
can have more than 5K rows
TransactionWeek Shipdate Partnumber Testside Lot Wafer1
Wafer2 Yieldnorm Chipnorm
47 11/20/2006 SWN3 A 12WAC00
3LU105SOG6 3LU105SOG6 17.231 60
47 11/20/2006 SWN3 A 12WAC00
3LU108SOE6 NA NA NA
40...
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 get presented with the data entry for a
new unit and the appropriate number of unitparts for that product as
defined by productsitems. The issue is that I need to...
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 :p...
2006 Jan 12
10
uninitialized constant error
...other table (like Part) in the database, and that is the line where I
get the error.
class PartController < ApplicationController
scaffold :part
def list
@parts = Part.find_all
end
def edit
@part = Part.find(@params["id"])
@partslocation = PartsLocation.find(@params["partnumber"])
end
end
Below is the error I am seeing related to the PartsLocation table, but I
have no idea why PartsLocation is uninitialized, but Part is
initialized. Any help is appreciated!
Thanks,
Paul
NameError in Part#edit
uninitialized constant PartsLocation
RAILS_ROOT: ./script/../con...
2004 Jan 19
2
Filename for printing?
...shortfall: I don't see any way to get the
filename of the file I'm printing. The jobname gives me:
For websites: the URL (which is great)
For apps (eg. Word): "Microsoft" (which is less great)
Many of the documents my users will be printing have detailed part
descriptions and partnumbers; it'd be a drag to not be able to have those
automatically associated with the PDFs being generated. Does anyone see
an elegant way to make this work? Or is it back to my inelegant, but
functional, lprng solution?
Thanks!
Ken D'Ambrosio
Sr. SysAdmin,
Xanoptix, Inc.
2006 Jul 20
4
Help with Rails and postgres with sequence numbers (global?)
...arts"
Column | Type |
Modifiers
--------------------+-----------------------------+-----------------------------
---------------------
id | integer | not null default
nextval((''i
d''::text)::regclass)
partnumber | text | not null
description | text |
unit | character varying(10) |
listprice | numeric(15,5) |
sellprice | numeric(15,5) |
lastcost | numeric(15,5)...
2010 Nov 30
4
CF disks images and centos
Hi all,
I have 8G -CF cards that I have been putting linux on.
Everything was working fine till yesterday when I got a new batch of CF
cards.
The size has changed. The original CF card was 7637M (255 heads/63
sectors/928 cylinders)
The new CF card is 8019M (255 heads/63 sectors/974 cylinders)
I would have thought putting the smaller image file onto the larger CF
card would be ok.
However its
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...
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
mypart = Part.find_by_partname("Large Widget")
if mypart != nil
for rs in mypart
p rs.partname
end
end
According to how I understand the book, I can use find_by_ and set it...
2004 Aug 06
2
Introduction...
...h I think the people here will find interesting.
A) We are going to do some porting work to Port Speex to the TI range of
DSPs. Initially we are going to target a TI Floating point device. the
device we have chosen is the TMS320C6711
See
http://focus.ti.com/docs/prod/productfolder.jhtml?genericPartNumber=TMS320C6711
B) We will then plan to do some porting work to the TI fixed-point
range. Most likely TMS320VC5510 - basically because our project is
battery powered the TI TMS320C55xx series is excellent as regards power
consumption.
See
http://focus.ti.com/docs/prod/productfolder.jhtml?generi...
2004 Aug 06
0
Introduction...
...interesting.
>
> A) We are going to do some porting work to Port Speex to the TI range of
> DSPs. Initially we are going to target a TI Floating point device. the
> device we have chosen is the TMS320C6711
>
> See
>
> http://focus.ti.com/docs/prod/productfolder.jhtml?genericPartNumbe
r=TMS320C6711
>
> B) We will then plan to do some porting work to the TI fixed-point
> range. Most likely TMS320VC5510 - basically because our project is
> battery powered the TI TMS320C55xx series is excellent as regards power
> consumption.
>
> See
>
> http://focus.ti....