search for: area_cod

Displaying 10 results from an estimated 10 matches for "area_cod".

Did you mean: area_code
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_...
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?
...own 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"), :id, :description ) %> ( <%= text_field "phone[]", "area_code", :class => "phones" %> ) <%= text_field "phone[]", "prefix", :class => "phones" %> - <%= text_field "phone[]", "suffix", :class => "phones" %> ext. <%= text_field "phone[...
2006 Dec 12
2
RXML partial question
...et of RXML partial ================ columns.each do |col_array| attr_name = col_array[0] column_display_name = col_array[1] value = eval("obj.#{attr_name}") column_contents = (column_display_name == ''Fax Number'' ? number_to_phone(value, {:area_code => true}) : value) parent_xml.td(column_contents, :id => "#{obj.id}_#{attr_name}") end -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Gro...
2006 Dec 05
1
problem with lists...
...ist) [1] "list" > mylist PC1 PC2 PC3 PC4 PC5 PC6 Account_Length -8.930570e-03 2.383719e-03 -2.414908e-02 -1.004704e-01 9.941468e-01 2.867606e-02 Area_Code 1.543767e-02 -1.710566e-02 -6.258129e-03 9.945271e-01 1.008478e-01 -8.890155e-03 Intl_Plan -2.627796e-04 -1.809011e-04 -9.542965e-05 3.230055e-04 2.148520e-04 -1.622996e-05 VMail_Plan 4.879640e-06 -1.339026e-04 1.639344e-04...
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
...S36040003 1990 M01 8.8 L I want to read in the data in one pass and convert them to a data frame with the following columns (actual name, class in parentheses): Survey abbreviation (survey, character) Seasonal (seasonal, logical seasonal=T) Area type (area_type_code, factor) Area (area_code, factor) Measure (measure_code, factor) Year (year, Date) Period (period, factor) Value (value, numeric) Footnote (footnote_codes, character but see note) (Regarding the Footnote, I have to look at the data more. If there's just one code per record, this will be a factor;...
2005 Oct 10
3
country code list
...ee something that states what a valid number actually is. So idealy to avoid getting charged a higher rate I would want to limit all calls to the UK to region codes starting with a 1 or 2 (although from what I have seen most of the 2x is 20 for london). I have found http://en.wikipedia.org/wiki/Area_code but I dont know if its accurate, and would prefer a more authoritative source for the information. I also dont know how out of date that is, some countries have easier telecom laws that allow people to set up phone companies then change the rate form what was published for termination. I certain...
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