Displaying 20 results from an estimated 4000 matches similar to: "Trouble with "require" and FastCGI"
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
>
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
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:
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
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,
2007 Jan 17
1
Updating to RUBY 1.8.4
Hi to all ...
I''m an italian people.
I''m developing a proget using Ruby on Rails, with Firebird 2.0 as data
base.
Actually I''m using this version of GEM:
RUBY: 1.8.2
RAILS: 1.1.2
ACTIVE-RECORD: 1.14.2
FIRERUBY: 0.4.1
RUBY-GEMS: 0.8.10
Now I need to upgrade to RUBY: 1.8.4, because I need to use Rmagick for
generate bar code. I installed Ruby 1.8.4 but now my
2006 May 25
2
Best way to validate an integer field?
I am trying to validate an integer field called quantity. I don''t know
how to chack if it has gone beyond or below the maximum or minimum value
allowed by the Firebird RDBMS. I tired adding this code to the validate
method in the model:
if (quantity > -2147483648) and (quantity < 2147483648)
errors.add("quantity", "is out of range (must be between
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
2006 Apr 28
2
Rails and Firebird
Hello! I''m new to Ruby and Rails, but have been reading along here, and
searched the archives and didn''t see anything addressing some concerns I
have with using Rails and Firebird.
I prefer Firebird when it is available, and I''m very pleased to see that
others have gotten it working with Ruby. I have been trying to use it
with Rails, with mixed success.
2009 Mar 31
7
Firebird adapter HELP???????
Hi All,
Is anyone successfully using ROR 2.x with Firebird 2.x in a production
environment? The support seems to have dwindled.
I would greatly appreciate any installation guidelines, comments or
tips. What is somewhat confusing is what is required to for ROR to play
nicely with firebird.
I have come across fireruby, fb_adapter, fb-0.5.9...there does not seem
to be cohesive install /
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/
2005 Aug 12
10
Anyone using Firebird w/ Rails?
I saw that there''s a patch in the queue
(http://dev.rubyonrails.com/ticket/1874) for a Firebird adapter. Just
wondering if anyone is using this, the other Firebird adapter, or
something else w/ Rails. My main interest is that sometimes Windows is a
target platform, and Firebird is stable on Windows, whereas I''ve heard
that the Windows version of PostgreSQL isn''t
2007 Nov 13
4
question about activerecord test_numeric_fields in base_test.rb
There''s a test for activerecord called test_numeric_fields in
base_test.rb. here''s the test
def test_numeric_fields
m = NumericData.new(
:bank_balance => 1586.43,
:big_bank_balance => BigDecimal("1000234000567.95"),
:world_population => 6000000000,
:my_house_population => 3
)
assert m.save
m1 =
2009 Mar 15
2
Rails + Firebird 2.1.x
Hi all,
I have played with JRuby on Rails in the past and managed to make it
work with Firebird. Although migrations did not work, I managed to do
everything manually and it worked. Now, I am working with Ruby on
Rails and was wondering if anyone here has managed to get Rails to
work with Firebird 2.1.x.
If yes, what were the steps? I installed fb and fb_adapter, and I get
the following error:
2009 Jul 29
1
Windows+Apache+FastCGI+Postgres - didn't work
Hello All,
Get
[Thu Jul 30 03:46:12 2009] [error] [client 66.249.67.10] (OS 2) Can''t
find specified file: FastCGI: failed to connect to server "C:/usr/www/
public/dispatch.fcgi": CreateFile()/WaitNamedPipe() timed out
[Thu Jul 30 03:46:12 2009] [error] [client 66.249.67.10] FastCGI:
incomplete headers (0 bytes) received from server "C:/usr/www/public/
dispatch.fgi"
2006 Aug 05
0
RMagick and FastCGI on Windows
I''m having trouble getting RMagick to work on my Apache/FastCGI setup.
If I top Apache and start WEBrick on the exact same app/dirs, it works
fine.
I installed RMagick following the instructions here:
http://rmagick.rubyforge.org/install-faq.html#win
That gives me:
C:\ruby\lib\ruby\gems\1.8\gems\RMagick-win32-1.9.2-mswin32\lib
2005 Dec 30
0
XP Apache FastCGI ok if RAILS_ENV="", crash when RAILS_ENV="production"
Dears,
Thanks to Demetrius (dema.ruby.com.br, see Taming FastCGI) I''ve a
running FastCGI Rails 1.0 environment with :
- Win XP "Professional" (just brand name)
- Apache 2.0.55 (msi)
- Ruby for Apache 1.3.1
- Database backend is now Oracle 8.1
Everything run fine with default environment, I''m confused for
switching into ''production''.
By default
2006 Sep 05
0
can't use rake deploy with Capistrano
Hello,
When I do rake deploy I have an error. As you can see, capistrano
tryes to ln a dir that already removed (and I think that the
directory is never created by capistrano).
Before this command I made rake remote:exec ACTION="setup" that
executed the following command:
mkdir -p -m 775 /home/explicadores/apps/tutor/releases /home/
explicadores/apps/tutor/shared/system
2005 Sep 04
0
Firebird adapter - updated info
For anyone testing the Firebird adapter (or interested in doing so), I
updated the instructions on the wiki with a simpler, improved test
setup. Click "See changes" on the bottom of the page for details on
what changed:
http://wiki.rubyonrails.com/rails/show/Firebird%20Adapter
Also... I hear that some people actually use Windows as a development
environment (perhaps due to factors
2006 Mar 16
5
Multiple databases + switching databases
Hello,
I have an application that access two different DBMS - Firebird
and Postgres. So far, that''s ok. The problem is, depending on the
customer logged, a different database (Firebird) must be selected.
To make the things clearer:
Postgres: 1 database shared by all customers with these tables:
- user
- vehicle
- driver
Firebird: several databases with different names and identical