Displaying 10 results from an estimated 10 matches for "part_id".
Did you mean:
part_i
2005 Dec 16
4
Validation with Aggregation
ActiveRecord supports composed_of for value objects which is
fantastic but one thing that it doesn''t seem to support (or at least
I am unable to find any documentation for) validation of the value
objects.
For example, given the following:
class Message < ActiveRecord::Base
composed_of :sender, :class_name => ''EmailAddress''
composed_of :recipient,
2009 Sep 28
6
What is the most efficient way to split a table into 2 groups?
...all the records from the parts
table whose ID is not 2.
I played around a little with :include clauses, thinking that I
should, at least, be able to fetch the record from the "lots" table
and the "parts" table simultaneously (with something like a joins
clause and a "lots.part_id = parts.id" WHERE clause), but didn''t get
anywhere with that.
I will end up leaving this the way it is (most likely), especially
since this isn''t the right phase of development to be worrying about
optimization, but I am curious how one might do this most efficiently.
Is it...
2009 Apr 24
1
RoR - getting started with database relations
...eRecord::Base
belongs_to :make
has_many :parts, :through => something
end
class Part < ActiveRecord::Base
belongs_to :model
end
However, I guess what is confusing me is that if I try to set it up
this way, if I enter a part for a 1999 Jeep Cherokee, how would I link
the part (say with part_id = 1337) to 1999, Jeep, and Cherokee? Would
I need to refine my setup here and link the part directly to the year,
make, and model by adding belongs_to and has_many or would I simply
add a column for make_id, model_id, year_id to my
"create_table :parts" method? ie:
create_table :parts d...
2008 Feb 01
2
Speex memory usage?
...M (I think the chip
is made so it limits its maximum speed to the slowest memory, flash. it
also has some EEPROM besides the SRAM).
//P?r
Ps. ATmega spec:
FLASH: 16kB
EEPROM: 512B
SRAM: 1kB
SPEED: 0-20MHz
Architecture: 8-bit RISC, no FPU.
Site: http://www.atmel.com/dyn/products/product_card.asp?part_id=3303
2006 Jun 30
2
how to HABTM with STI ??
Hello all
This is my first post so excuse the basic question. (and any repeats I just
got an email saying this post was too big so I have re-submitted a smaller
version)
I was following the thread on
http://lists.rubyonrails.org/pipermail/rails/2006-May/038988.html regarding
the STI on HABTM for RoR.
I have a very similar problem and was hoping for some help.
I have the
2008 Feb 01
2
Speex memory usage?
Hello Mailing List,
I am a Speex supporter and user that would really like to know how much
memory Speex uses to decode a 8kHz, 16kHz and 32kHz (primarily the 8kHz)
and is it possible to use a 1kBytes of RAM to decode a 8kHz stream? (I
was thinking of the possibility of using a ATmega168 to decode Speex)
//P?r, Sweden
2008 Feb 01
0
Speex memory usage?
...> EEPROM: 512B
> SRAM: 1kB
> SPEED: 0-20MHz
Too slow.
> Architecture: 8-bit RISC, no FPU.
All the code assumes you have a 16x16 multiplier and a 32-bit
accumulator. Emulating that on an 8-bit chip would be far too costly.
> Site: http://www.atmel.com/dyn/products/product_card.asp?part_id=3303
Given your requirements, the only thing that might work for you is one
of the ADPCM variants.
Jean-Marc
2006 Apr 18
1
''wrong number of arguments'' for text_field?
...0) [GET]
Parameters: {"action"=>"new", "controller"=>"inventories"}
Inventory Columns (0.000387) SHOW FIELDS FROM inventories
#<Inventory:0xb793a0e0 @new_record=true, @attributes={"created_on"=>nil,
"status"=>0, "part_id"=>0, "account_id"=>0, "branch_id"=>0,
"updated_on"=>nil, "created_by"=>nil, "quantity"=>1, "updated_by"=>nil}>
Rendering within layouts/application
Rendering inventories/new
ActionView::TemplateError (wrong...
2006 Mar 30
1
[Fwd: Re: [Fwd: Re: Still ATAPICAM Lockup/Slowdown]]
Thomas,
Have spoken to Soren, from my bootlog he believes that the problem is in
atapicam causing the system to lock up. He is happy to answer some
questions but doesnt have time to delve into atapicam himself.
Did you author atapicam, I have seen your name on the sourcecode, can
you help me further? Whats next?
Thanks Adam.
-------------- next part --------------
An embedded message was
2007 Jun 08
2
Can't get if_txp(4) to attach to a 3CR990B-TXM NIC
...xfdbfe07f irq 16 at device 8.0 on pci3
txp1: Reserved 0x80 bytes for rid 0x10 type 4 at 0xb800
txp1: not waiting for boot
device_attach: txp1 attach returned -1
acpi_tz0: <Thermal Zone> on acpi0
fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: ic_type 90 part_id 80
ioapic0: routing intpin 6 (ISA IRQ 6) to vector 52
fdc0: [MPSAFE]
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0: irq maps: 0xca1 0xcb1 0xca1 0xca1
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
ioapic0: routing intpi...