# Problems with FireRuby and scaffolding

**URL:** <https://www.ruby-forum.com/t/problems-with-fireruby-and-scaffolding/98389>\
**Category:** Rails\
**Created:** [January 29, 2006, 4:17am UTC](https://www.ruby-forum.com/t/problems-with-fireruby-and-scaffolding/98389 "2006-01-29T04:17:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![juantar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/919ad9/32.png) [@juantar](https://www.ruby-forum.com/u/juantar)\
**Post date:** [January 29, 2006, 4:17am UTC](https://www.ruby-forum.com/t/problems-with-fireruby-and-scaffolding/98389/1 "2006-01-29T04:17:30Z")

</div>

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 like this:

development:  
adapter: firebird  
database: …/database/TARPRILOGISTICS.GDB  
username: sysdba  
password: masterkey  
charset: UNICODE\_FSS  
host: localhost

Any solutions to this problem?

Thank you.

---

<div class="post-metadata">

**Author:** ![juantar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/919ad9/32.png) [@juantar](https://www.ruby-forum.com/u/juantar)\
**Post date:** [January 31, 2006, 2:02am UTC](https://www.ruby-forum.com/t/problems-with-fireruby-and-scaffolding/98389/2 "2006-01-31T02:02:31Z")

</div>

Try changing to “character set: UNICODE\_FSS” instead of “charset:  
UNICODE\_FSS”.

It works to me.

development:  
adapter: firebird  
database: c:\rails\producao\SCF.GDB  
host: TOSHIBA-USER  
character set: UNICODE\_FSS  
username: SYSDBA  
password: masterkey

hope this help.

---

<div class="post-metadata">

**Author:** ![juantar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/919ad9/32.png) [@juantar](https://www.ruby-forum.com/u/juantar)\
**Post date:** [January 31, 2006, 2:36am UTC](https://www.ruby-forum.com/t/problems-with-fireruby-and-scaffolding/98389/3 "2006-01-31T02:36:01Z")

</div>

No it didn’t work with “character set: UNICODE\_FSS”. Now it just ends  
with a “FireRuby::FireRubyException” when I run the scaffold.

---

<div class="post-metadata">

**Author:** ![juantar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/919ad9/32.png) [@juantar](https://www.ruby-forum.com/u/juantar)\
**Post date:** [January 31, 2006, 3:32am UTC](https://www.ruby-forum.com/t/problems-with-fireruby-and-scaffolding/98389/4 "2006-01-31T03:32:36Z")

</div>

Juan,

Here’s one of my FB config files:

development:  
adapter: firebird  
database: mytestdb  
host: localhost  
username: sysdba  
password: masterkey

My DB is on my PC. Have you also setup your aliases.conf file, located  
in your Firebird folder? Mine contains the following:

mytestdb = c:\ruby\projects\test\db\mytestdb.fdb

I’m using Firebird 1.5.3, Rails 1.0, Ruby 1.8.2 and FireRuby 0.4.1 - and  
everything works fine.

---

<div class="post-metadata">

**Author:** ![juantar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/919ad9/32.png) [@juantar](https://www.ruby-forum.com/u/juantar)\
**Post date:** [February 4, 2006, 2:40am UTC](https://www.ruby-forum.com/t/problems-with-fireruby-and-scaffolding/98389/5 "2006-02-04T02:40:37Z")

</div>

Peter J. wrote:

> Juan,
> 
> Here’s one of my FB config files:
> 
> development:  
> adapter: firebird  
> database: mytestdb  
> host: localhost  
> username: sysdba  
> password: masterkey
> 
> My DB is on my PC. Have you also setup your aliases.conf file, located  
> in your Firebird folder? Mine contains the following:
> 
> mytestdb = c:\ruby\projects\test\db\mytestdb.fdb
> 
> I’m using Firebird 1.5.3, Rails 1.0, Ruby 1.8.2 and FireRuby 0.4.1 - and  
> everything works fine.

I make it work at last. The solution was to upgrade from Firebird 1.5.2  
to 1.5.3. My config file looks like:  
development:  
adapter: firebird  
database:  
C:\MyProjects\workspace\TarpriLogRuby\database\TARPRILOGISTICS.GDB  
host: localhost  
character set: UNICODE\_FSS  
username: sysdba  
password: masterkey

Thanks everyone for all the help!! I really appreciate it! One more  
question tho: Is there any way of making the path to the database  
relative instead of absolute? I tried “…/database/TARPRILOGISTICS.GDB”  
(the database is in the database folder in the web app root folder) but  
it did not work. Any suggestions are welcomed.
