Displaying 10 results from an estimated 10 matches for "area_codes".
2008 Jul 01
6
validates_associated & foreign keys
Hi,
I''m struggling to get the validates_associated to work as I think it
should be.
I''m using:
JRuby 1.1
rails-2.0.2
activerecord-2.0.2
activerecord-jdbc-adapter-0.8.2
My tables in MySQL:
CREATE TABLE area_codes (
id INT UNSIGNED auto_increment primary key
...
);
CREATE TABLE markets (
id INT UNSIGNED auto_increment primary key,
...
);
CREATE TABLE area_codes_markets (
id INT UNSIGNED auto_increment primary key,
market_id INT UNSIGNED NOT NULL,
area_co...
2008 Jul 29
5
Callerid Woes
I am trying to setup one time caller id block on my system(activated
when an incoming call matches *811XXXXXXXXXX), and I have had little to
no luck. Could you take a look at my context/macro definition and help
me figure out what I am missing?
Here is my context for my dialplan:
include=default
plancomment=user-default
2004 Sep 23
5
Billing Fun - anybody know where to get a NPA/NXX db?
...for each user of the system - so I can bill client A at 3
cents a minute and client B at 2 cents, etc...
Anyway, my question is: where can I get a copy of the NPA/NXX db without
paying an arm and a leg for it? The NPA's are a free zipped up .mdb
(gag) file on this page: http://www.nanpa.com/area_codes/index.html
I also came across a 1999 version of the whole shebang in a text file
here: http://sd.wareonearth.com/~phil/npanxx/
It would be nice to be able to accurately lookup city and state for
billing. Anybody have a resource?
Thanks,
Thomas Hutton
2006 Jun 12
3
Multiple Form Fields with Same Model?
Hello,
I''m trying to create a form that will allow a user to submit a list of
phone numbers, but the list is dynamically created. Thus allowing my form
to submit an unknown number of phone numbers.
Here is some of the code I have been trying:
<%= collection_select( "phone[]", "phone_type_id",
PhoneType.find(:all, :order => "position"),
2006 Dec 12
2
RXML partial question
All,
I have a RXML template which renders partial RXML templates within it.
A snippet is below. The "xml" variable is the parent template''s Builder
variable. It is passed into the partial under the name "parent_xml".
Why can''t I use :locals => {.... :xml => xml ....} in my call to render
the partial? It seems like if I do use :xml => xml, it
2006 Dec 05
1
problem with lists...
Hi guys,
I am new to R, so sorry if my problem seems trivial.
Sometimes I encounter some lists, which I cannot index their components
with [ . ]
For instance the prcomp() function returns a 'prcomp' object whose
components are some 'lists'. the second component is a list that
comtains the following:
> mylist <- churn[2]
> class(mylist)
[1] "list"
>
2007 Feb 23
2
how to remove spaces from phone number
Hi,
I need to allow login based on the phone number. During the signup they
can give the number in any format with spaces, slash or (). But for
storing in database and then during login to compare I just want the 10
digit number. How can I remove the special char from phone number before
storing to db ?
Thanks.
--
Posted via http://www.ruby-forum.com/.
2010 Mar 02
1
Reading data file with both fixed and tab-delimited fields
Hello R wizards,
What is the best way to read a data file containing both fixed-width and
tab-delimited files? (More detail follows.)
_*Details:*_
The U.S. Bureau of Labor Statistics provides local area unemployment
statistics at ftp://ftp.bls.gov/pub/time.series/la/, and the data are
documented in the file la.txt
<ftp://ftp.bls.gov/pub/time.series/la/la.txt>. Each data file has five
2005 Oct 10
3
country code list
I was wondering if anyone has put together a comprehensive list (that is
reasonably maintained) that lists country codes, landline numbers,
mobile numbers, etc. The particular requirement is for a dialplan to
know what is going to be charged to whom.
For example, mobile and landline rates are the same in the US the US has
a unified numbering plan of 1NXXNXXXXXX, while the UK has:
441xxx
2006 Apr 21
11
Phone Numbers in Rails/MySQL
Is there any easy way to make a fancy looking form to take phone
numbers. Something that looks like this:
[ ] - [ ] - [ ] ext: [ ]
Then when you submit it it''s combined into one string in the database.
Optimally it would auto-switch from field-to-field after you fill each
field.
Has anyone seen anything like this in Rails?
Thanks,
Adam
--
Posted via