Displaying 15 results from an estimated 15 matches for "partnumbers".
Did you mean:
partnumber
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
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
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
2008 Dec 13
2
What is "The Rails Way" to do this?
I have a PHP application with the following in one of the "views":
<input type="button" onClick="newAlt()" value=" + "></nobr>
The JavaScript for "newAlt()" is:
// using DOM create new input box for alternate part
function newAlt() {
var html = "<input style=''background-color:#FFFFCC'' ";
html +=
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
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
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 Jan 12
10
uninitialized constant error
Hi Everyone,
I''m a newbie to Rails, and I just finished going through the cookbook
tutorial. I''m now trying to build my own application, and I''m trying to
add more inputs to the edit view to modify data in other tables. Below
is the controller code where I am having trouble. PartsLocation is
another table (like Part) in the database, and that is the line where
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?)
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:
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 a ruby way to do this?
i have navicat, but i
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
2004 Aug 06
2
Introduction...
I've been following this kist for a while now and I suppose I had better
introduce myself. This is going to be rather a long message, but that
can't be avoided.
My name is Andrew Baker and I work for a company called TeleDesign. We
are based in the UK.
http//www.teledesign.co.uk
I have lots of experience with telecomms, a fair bit with VoIP, quite a
bit (but rather less recent) with
2004 Aug 06
0
Introduction...
1. Good Luck
2. Keep posting, we are interested in a fixed point version of speex and
would try to colaborate. Our need isn't as immediate but if you set this up
correctly we and (hopefully) others will try to collaborate.
3. I'm interested in the methodology for creating a fixed point
implementation and guaging how "good" it is relative to the floating point
golden standard