Displaying 20 results from an estimated 200 matches similar to: "has_one"
2006 Mar 06
2
is "alias" reserved?
I''m playing with an online store....
I have an orders table which holds orders (pricing, statuses, etc).
An orderDetails table which holds detailed line items (itemNumbers, unit
prices, etc).
Each order can have multiple shipping addresses, so I also have
an addressbook table. Each orderDetail is tied to an addressbook entry
via the ordernumber and addressbook alias, but this
2006 Feb 14
6
[newb] Find vs Find :all question
I''m playing out with writing an online store.
So far it has accounts, addressbooks, and orders, and those 3 are tied
together with an customer ID. I also have orderDetails, which are
associated to the order via an order number. See models below...
When I do the following I can access the orderDetails information just
fine:
@order = Order.find(params[:id]) # i pass it a customer
2005 Sep 23
1
Sortable list with Ajax and delete function - working example
Hi.
I read most of the postings here but unfortunately I didin''t found a complete example which could be used. Of cource the ones who are professionals in javascript could implement the missing peaces from the puzzle.
What I''m required to do is a tree (sortable list) where items can also be deleted and at each modification a function (ajax) is called to save the changes. For
2006 Mar 29
4
:through alternate
I''d like to use :through to create a web of associations like:
class Thing < ActiveRecord::Base
has_many :child_things, :through => :thing_thing
has_many :parent_things, :through => :thing_thing, :some_other_option?
end
class ThingThing < ActiveRecord::Base
belongs_to :thing
belongs_to :child_thing, :class_name => ''Thing'', :foreign_key =>
2005 Oct 02
1
Adit 600 FXO card sound quality
I have an adit 600 with one fxo card connected to a Digium single span T1 card.
CallerID, disconnect supervision work perfect, however the users
complain that they have some sound quality issues, after testing it I
realized that whenever one is in a phone call they get like silence
between the sounds coming from the other party, almost like a cell
phone, in other words if there is no sound coming
2004 Jun 20
10
One way audio
Perhaps I was a little too hasty in my conclusions of dysfunctional fax
on the SPA-2000. It turns out I have a one way audio problem on line
one of my SPA-2000. I have all the correct settings according to the
comments in the wiki, but the problem persists. However, if I do a hook
flash out of and back in to the call that isn't transmitting audio, it
works fine. My sip.conf entry for the
2003 Mar 31
2
Serious problem with z-plex 10
Hello
I have serious problem with zhone z-plex 10
the device sometimes get red alarm on some channel
and then the device suddenly shutdown.
I try to unplugged the power chord and plug again,
but the device still didn't up. I have to wait
for long time to get this device up again.
How can i fix this problem, so i can get this device
immediately?
Eris Riswanto
2010 Jul 26
0
Adit 600 over MGCP.
Hi,
Anybody out there running Adit600s?
I have in my care an Adit600 channel bank connected to an old (version
1.0.6) Asterisk instance with MGCP. When trying a more recent Asterisk
(1.4.21.2~dfsg-3+lenny1, Stock current Debian) calls fail.
I have attempted to add the "slowsequence = yes" line to mgcp.conf. (It
seemed to be the only likely candidate in the example files I found
2004 Jul 25
3
FXS vs. FXO
Hello,
I've recently purchased Adit 600 with 3FXS and 1FXO to be connected to
my * server via T100P card. This is the output of "status equipment"
command in the Adit600:
For some reason the FXO card is seen as FXS, why? Is it ok? On the card
it is written "FXO".
Regards,
Shlomi Bachar
-------------- next part --------------
An HTML attachment was
2012 Nov 06
0
[ANNOUNCE] xf86-video-ati 7.0.0
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
xf86-video-ati 7.0.0 is released!
This is the first KMS only release. Major changes:
- - Enable 2D tiling by default on r6xx+ asics
(requires mesa 9.0+). If you are planning to
ship xf86-video-ati 7.x with an older version of
mesa, please disable 2D tiling.
- - xserver 1.13 support including prime
- - glamor support
- - SI support
Adam
2004 Jul 31
0
Trunk doesn't work Adit 600/T100P
Hi !
I am connecting to Adit 600 thru a T100P card
I have configured 1-16 FXS channels and 17-24 FXO.
Everything looks fine on Asterisk side I get a tone
on all FXS channels, but when I try to dialout thru
one of the FXO channels 17-24 it doesn't connect to
the POTS line and echoes back my voice.
I use fxsls and fxols for the T1 channels and ls on
Adit side. Whats wrong here ?
here is my Adit
2010 Dec 29
1
Script Output Format
Hi all!
i'm just did a script that the output must be comma separated to be imported into a spreadsheet.
the output that i obteined was
Date/Time,We. Active Threads,W. Total Threads,W. Worker Threads,Name
29-12-10/11:43:01,0,250,0,/FIM
,0,/mytest
,0,/mockofprod/financing/customercentre
,0,/mockofprod/financing/commercial/amt
,0,/account/orderstatus
,0,/activities
as you can see, the first
2004 Jan 17
1
Channel Bank Woes...
Hello all,
I have a new Carrier Access Adit 600 and am having a problem dialing out
and receiving incoming calls.
After the initial ring, the calling party will here nothing. There is a
silence, but the SIP phones that is supposed to ring will ring. The
calling party will not hear the sound of the ring that * sends out on
the line. Additionally, if someone picks up the receiver there is no
2006 Mar 27
1
rescue value
Do you know if exist a method to rescue the variable value pass to a
page .rhtml?
Something sucj as "_GET" in PHP?
--
Posted via http://www.ruby-forum.com/.
2006 Jan 19
7
bug in has_many count?
I can submit a patch, but wanted to confirm I''m looking at this right...
The docs indicate that if you specify a has_many association with
:finder_sql, but no :counter_sql, it constructs the appropriate counter
sql by substituting the SELECT clause.
But has_many_association.rb doesn''t seem to do that -- it just passes
Base#count_by_sql the finder_sql, which doesn''t
2006 Feb 28
3
[AR] #{id} namespace visibility used in finder_sql
Dears,
[Rails 1.0.0]
I''m working with a legacy schema, and around my 20+ models i''ve used
some AR constructs.
They are based on a finder_sql doing some dirty sql and using #{id}
from the ''pivot'' model for extracting data in other tables.
like :
class Division < ActiveRecord::Base
set_table_name "legacy_division"
set_primary_key
2005 Dec 27
3
Trouble combining :has_many, :finder_sql and :conditions to create a sub-search
I''m sure there''s something right under my nose that I''m missing. I
have two tables with two parallel one-to-many relationships. I wish to
use the :finder_sql parameter to essentially ''or'' the two foreign
keys.
What isn''t working for me is performing a ''sub-search''.
Let''s say the tables are "stores" and
2006 Oct 30
2
It this possible: finder_sql-like behavior for belongs_to?
Guys,
I have a need to support as has_many/belongs_to relationship on a
legacy(kind of) schema. The reason I say kind of is that the schema does
have "id" columns that are used in many associations, but this particular
has_many/belongs_to association needs to support different ones.
I''ve attached to code at the end of this email. Suffice it to say I need to
use the standard
2006 Jan 06
1
has_many with :finder_sql question
hi all,
I have a Class, Client, which has_many projects (Project class). the
projects depend on a session_id variable, however. So the question
is, how can I do the following:
has_many :projects,
:finder_sql => "SELECT p.* FROM projects p INNER JOIN
projects_users pu ON pu.project_id = p.id WHERE pu.user_id =
#{session[:user_id]}"
The problem is that I need to filter a
2006 Aug 15
2
has_many + finder_sql & :include
Hello,
In a model I have:
has_many :things, :finder_sql => '' select * from other_things '' +
'' where id = #{id} ''
When I do MyClass.find(:all, :include => :things) I get a weird error:
from
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract_adapter.rb:120:in