Displaying 20 results from an estimated 300 matches similar to: "n-way has_mant :through"
2006 Jun 23
3
form_remote_tag is not passing form params
I''ve searched and searched and searched again, and I cannot find any
help with this problem. There''s an identical problem on this forum, but
it was never resolved. I''ll try to re-open the subject with a bit more
information.
Problem: The form_remote_tag() method in my "list" view is not passing
the params[] hash of the values stored within my form.
2008 Jun 06
2
joining tables
Hi
I have 3 tables as
1) user_groups
id | contact_id | group_id | group_user_type_id
2) contact
id | name_first | name_last |
3)contact_email_addresses
contact_id | contact_email_address_type_id | emailaddress
Now I have group_id sa for example 68
What I want is from contact_email_addresses table get all the
emailaddress with contact_email_address_type_id=2 for the contacts
2010 Jun 08
9
[Rails Heroku] Problem with saving object (on heroku hosting)
Hi All,
I have some strange problem which appears only on heroku hosting 2.3.5
default stack (not on my local computer)
I have some models. Here they are:
class Contact < ActiveRecord::Base
belongs_to :user
belongs_to :type, :class_name => "ContactType", :foreign_key =>
"type_id"
validates_presence_of :name, :on => :create, :message =>
2006 May 19
2
Problem with joins and overlapping field names
Hi,
I have the following code:
@conversation_pages,
@conversations = paginate(:conversations,
:per_page => 20,
:joins => ''LEFT JOIN messages on
messages.conversation_id = conversations.id ''+
''LEFT JOIN email_addresses on
2011 Oct 19
4
Using SQL "IN" with RJDBC or RMySQL
Hello,
The code below works fine up until I try to use the "IN" statement in
the last line. The proper SQL format is:
SELECT * FROM this_table WHERE this_column IN (1,2,3,4,5)
But, I think I may be getting something like:
SELECT * FROM this_table WHERE this_column IN c(1,2,3,4,5)
Which makes no sense in SQL. I think it may be just a matter of string
massaging, but I'm not
2006 May 25
4
Does TMail support Nested Multipart Messages? (Repost)
Hi,
does anybody know if TMail supports nested multipart messages? I read
a changelog that indicates so
(http://dev.rubyonrails.org/svn/rails/trunk/actionmailer/CHANGELOG), but
I haven''t been able to get it working so far.
Maybe I am doing something wrong here?
I attached the sample mail. Here is the code to parse it:
require File.dirname(__FILE__) +
2007 Mar 01
0
Reshape data
I have two data frames with a number of common variables that I wish to put into "long format".
The first contains the variables
es(Csales)
[1] "terr" "Dec.02" "Jan.03" "Feb.03" "Mar.03" "Apr.03" "May.03" "Jun.03"
[9] "Jul.03" "Aug.03" "Sep.03" "Oct.03"
2008 Jan 23
2
FOSDEM 2008
Hi all,
Just wondering if anyone is going to FOSDEM 2008 this year. I know Luke
can''t come (which is his loss, more beer for me :P) but that doesn''t mean we
can''t have a little meetup amongst puppeteers! Just to see some faces behind
the nicks and emailaddresses and the like.
Like last year, I''m planning on only visiting one day, probably the Sunday.
Anyone
2004 Jan 14
4
Multiple phonenumbers on one E1 PRI with Digium TE410P ?
Hi,
one short question: Is it possible for the zaptel driver to deal with
multiple phone numbers on one single E1 PRI line?
I could make my carrier route +49 xxx aaaaa-zzz and +49 xxx bbbbb-zzz
and others down one single PRI trunk to our asterisk box terminating in
a Digium TE410P.
Does the driver handle this and can I put calls coming in all on the
same physical interface put into
2006 Mar 22
5
foreach item in column
Hi there,
I have a database with phonenumbers, and I want to make a function
that runs a command for each of these numbers, with the number as an
argument
Something like this in Perl:
system("/bin/command $number");
mysql> select * from numbers where list = "one"
+----+----------+----------+---------------------+-----------+
| id | number | name | email
2005 Aug 08
1
Same action to multiple numbers
Hey!
I'm going to implement same actions (answer,wait,dial,playback,queue,hangup) for
3 phonenumbers when call is coming. Do I have to write three separate lines for
same actions for each phonenumber or is there any way to write one command
lines for all three lines? Any examples?
Thank you for your answers!
----------------------------------------------------------------
This mail sent
2005 Feb 19
2
I have a odd question...
Hi all.
I am going to do a simple "voting application" for a radiostation.
The idea is to have listeners call in to vote on songs.
What I want to do is to take a phonenumer for each song and present the
result on a simple webpage.
Eg.
To vote on song number one, call 555-1111
To vote on song number two, call 555-2222 etc etc.
When the listener calls in, a playback tells him:
2007 Jun 24
6
I only want one type of model returned from a multi_search
I am trying to use acts_as_ferret''s multi_search to search across
multiple models, but i only want it to return one type of model.
for example i have a page that lists out people. on this page it shows
email addresses and phone numbers. I want to be able to search by any
fields directly from the person model and search the fields from the
email_address and phone_number models, but I only
2010 Sep 02
0
asterisk 1.6.2.11 freezes the server
Hi,
I have a problem that the machine running asterisk 1.6.2.11 freezes
unexpectly time to time. Sometimes it runs for 4 weeks without any
problem, sometimes after a free it freezes again in 24 hours. But
usually it runs normally for 1 month or so before it freezes again.
I could not find any additional info in any file located in /var/log/
including asterisk's messages file. Verbosity
2004 Aug 25
1
Individual call-forwarding on ISDN
Hi,
I'm looking forward to install an asterisk-server to perform ISDN-to-SIP-
bridging. But for the times when I'm not available via SIP I also need call-
forwarding-features. Afaik it is possible to directly forward a call on ISDN
instead of opening a second ISDN-channel additional to the incoming-ISDN-
channel and forward the call "by hand", right?
What if I need features
2005 Jan 05
0
Asterisk with Euro ISDN, etc
Hi folks!
Our company are going to buy an E1 line with Euro ISDN and 30 lines (channels).
This is how it will be configured:
3 Lines, of the total of 30, is going to be for the company phones, and share one phonenumber (eg. 555-12340).
1 Line will be dedicated to a specific unique phonenumber (Fax) (eg. 555-54321).
The rest of the lines/channels (26) will be used by (by, not for) our customers,
2012 Dec 26
0
Presence Registration on the D40
So I'm working with our Digium D40's and we're not using DPMA.
This video ( http://www.youtube.com/watch?v=zcuocp01pfM#t=35s ) shows
presence information being displayed in the Contacts application. Obviously
the video is showing DPMA in play. Is it possible to enable this
functionality without it? Is this status information only available on
higher-end Digium phones?
In the contacts
2006 Jul 27
1
response from ajax request
Hi, newbie here.
I am trying to implement a filtering interface using observe_field.
Using firebug I can see that I am getting the properly rendered html
blob back in the response, but when it get inserted into the dom element
that I am targeting, the plain html elements from the partial template
have been stripped, leaving only the elements inserted via the <%=
statements. I would
2007 May 03
2
OT - robo dialer
Can anyone suggest a source for a free robot dialer or examples? I need to
do some non-commercial auto dialing using Asterisk. Simple phone numbers
in a file, line by line format.
I found one called AstAutoDiaker but I was not able to get it to work and
it appears to not be supported - no email response from author.
Doug
2006 May 20
10
HOW TO create a new record and its associated objects within the SAME PAGE
hi,
can''t find any good tutorial or advice to deal with the creation of a
new record and it''s associated objects within the same page.
do i have to use ajax just to add custom form fields that will be
handled by the controller for associated objects creation.?
do i have to use ajax to add associated objects to the unsaved but
allready in session parent object?
what''s