similar to: Best way to validate an integer field?

Displaying 20 results from an estimated 300 matches similar to: "Best way to validate an integer field?"

2006 Jan 29
4
Problems with FireRuby and scaffolding
I am trying to generate some scaffolding using "ruby script/generate scaffold order order". It always fails with the message "uninitialized constant CHARACTER_SET". I have an orders table in a Firebird databse called TARPRILOGISTICS.GDB. The database is in a folder named "database" in my rails app root folder. I tried FireRuby 0.4 and 0.4.1. My config file looks
2006 Jul 30
0
Error in new record using Fireruby
The Action Controler List worked, but if i add one new record, i''m view the message bellow " FireRuby::FireRubyException: Error preparing a SQL statement. Dynamic SQL Error SQL error code = -842 Precision must be from 1 to 18 Wrong numeric type SQL Code = -842 Firebird Code = 335544569 : SELECT CAST(0 AS DECIMAL(0,0)) FROM RDB$DATABASE " I''m apreciate any
2007 Jan 22
0
rail 1.2.1: Fireruby exception with firebird
Rubyonrails application which was working fine with rails 1.1.6, fireruby and firebird 1.5.3 does not work with rails 1.2.1. The error is reproduced below. Could not get over this problem. Any help coming through? Thanks in advance. ActiveRecord::StatementInvalid in TimekeeperadminController#authenticate FireRuby::FireRubyException: Error preparing a SQL statement. Dynamic SQL Error SQL error
2008 Apr 23
2
Table Unknown - SCHEMA_INFO
Hi all, Sorry for another newbie question! I''ve got a legacy firebird database which I wish to use, and thanks to help from this group I''ve used Dr Nic''s Magic Models to get RoR talking to the database. However, I wish to create a new table ("reports") in this database, and so generated the scaffold such that the file "db/migrate/
2007 Nov 22
5
Odd bug in Siemens C460IP ?
Hello, I think I have encountered an odd bug in Siemens C460 IP/dect handsets, which is a bit annoying, and I'm not (yet) sure how to get round it without lots of hacks. Basically, on all external incoming calls, we set: exten => s,n,SIPAddHeader(Alert-Info: Bellcore-dr2) This causes handsets (i.e. Cisco 7960 / Grandstream / aastra) to set a different ring cadence so to differentiate
2015 Jun 29
2
set up login.defs but password still not expire?
We have Centos 5.8 on LInux server.I setup /etc/login.defs following: PASS_MAX_DAYS?? 3 PASS_MIN_DAYS?? 0 PASS_MIN_LEN??? 8 PASS_WARN_AGE?? 1 after that I chack user password policy and it show:# chage -l user1 Last password change??????????????????????????????????? : Jun 29, 2015 Password expires??????????????????????????????????????? : never Password
2005 Jul 07
2
Extension Problems
Better read up on why a sip phone should register with asterisk. Do a 'sip show peers' and that will be the list of phones that can "receive" calls. ------------------- I've double checked this. Everything is logging in fine, because I can make calls, check my voicemail, everything except recieve calls on the SIP devices. David Phelan wrote:
2006 Jul 06
3
Understanding date_select naming conventions
I am using the date_select helper to generate date select elements in a form. I notice that the generated HTML shows that these selects have the following names: Month: current_job[StartDate(2i)] Day: current_job[StartDate(3i)] Year: current_job[StartDate(1i)] I''m assuming that the Xi identifiers somehow specify the appropriate date part from a date or time value. Can anyone
2001 Apr 24
2
ICQ-2000a on WINE ?
hi, has anyone ever tried (hopefully with success ;-) to run icq2000a on wine ? (copied over or installation on wine wouldn't make any difference. i'd like to have this, 'cause i decided to kill my last windows-box. the only app i used there was ICQ. but i don't want to loose all my contacts and history-files. so i'm not going to use any linux-icq-clone (unless i find
2003 Sep 10
1
geoR variogram problem
Dear GeoR-er, If I use the variog function in the latest release of geoR, the first lag is always ignored. For instance, if you read in geodata, calculates the variogram using the variog function and give in a uvec like uvec=seq(0,max,by=2.44), it only starts giving results from distance=4.88 and ignores 2.44! This wasn't the case in former versions of geoR. Is this done on purpose? Why?
1999 Nov 15
2
Problem with socket options after upgrading to Samba 2.0.6
Hi there everyone, Again another slight thing I noticed since I upgraded to Samba 2.0.6 from 2.0.5a. I'm using RedHat Linux on a Celeron 400 with kernel 2.2.13. My socket options in smb.conf is set to "TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_SNDBUF=8192 SO_RCVBUF=8192". However I've started getting the following everytime I SIGHUP to reload the configs and stop-start:
2006 Mar 15
8
Tags to ruby interface: What I am missing? (repost)
I offer my apologies in advance for the repost. On a list as busy as this, it is sometimes easy to get missed in the shuffle. I am trying to create, display and edit a referenced object''s text field on the same view as my root object. For example: ------------------------- Quiz: <<quiz.name>> Preamble: <<quiz.preamble_presentation.text>> Postamble:
2003 Jun 30
3
if else statements in R
Hi, there I am a grad student struggling to get my syntax right in a model I am building in R. I am trying to specify a variable,W, in a loop, such that on the first iteration, it is equal to Wo, my starting value, which I have already specified with Wo<-9.2 On any other iteration other than the first, I want W to equal the previous value of W in the iteration. plus an increment from
2007 Jul 23
2
Firebird, fireruby
Hi Guys I am pretty new to Ruby. One of our client is using Firebird as his backend database. I have to create a script which will connect to his database, fetch some data and update few tables in MS-SQL database. Now problem is: i have installed FireRuby, got databaes, changed my database.yml file. I am trying to display all the users in Members table. but i am getting following error:
2010 Nov 21
6
Access denied for user 'root'@'localhost' (using password: NO)
I am getting this message after run: ruby script/server and click in "About your application environment" in the browser. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To
2005 Nov 16
2
Firebird adapter next steps
I saw that the Firebird adapter was merged to the trunk last night... thanks Jeremy! Since I last submitted the fb patch (11/1), I''ve been working on several improvements, including: 1) I reorganized the code to match the newer conventions used in the other adapters (mostly just changed the order and grouping of methods, and added some "section header" comments). 2) An updated,
2005 May 13
5
Is there a product to simulate a PRI trunk?
Does anyone know of a way to simulate the signaling of a PRI trunk for testing/setup purposes? I realize this may be a rather naive question, but I was wondering if you could take a TE110, for example, and using a crossover cable (or not?) and some means of emulating the NI2 signaling protocol connect it to another TE110 on another machine to test and verify an installation before the telco
2006 Apr 11
0
Problem using generate/scaffold and FireRuby
Hi to all, I am trying to use "ruby script/generate scaffold product". I always get the message "uninitialized constant CHARACTER_SET". I have a products table in a Firebird database called depot_development.fdb. Here is my config file : > common: &common > adapter: firebird > host: localhost > username: SYSDBA > password: masterkey >
2007 Mar 26
2
Failure creating model in spec setup not reported?
Hi I''ve just tracked down a wierd error that AFAICT is caused by an error not being raised in the setup: context "An Asset" do setup do @provider = Provider.create(:name => "Provider1") @product = Product.new(:name => "Product1", :provider => @provider) @applicant = Applicant.new(:first_name =>
2006 Mar 10
0
Problem with fireruby when connecting to database
Hi there, i got a similar problem like Franz Bettag in http://www.ruby-forum.com/topic/57499#new i posted this again because the upper ticket was placed in ruby and not in ruby on rails! :) -- Posted via http://www.ruby-forum.com/.