Firebird and Rails using jruby

I’m using last jruby release with rails 2.0.2 and activerecord-jdbc-adapter.

#gem install rails activerecord-jdbc-adapter

Then copy Firebird-jdbc-adapter.jar into $JRUBY_HOME/lib

Configure your rails application database.yaml like that:

development:
adapter: jdbc
username: sysdba
password: masterkey
driver: org.firebirdsql.jdbc.FBDriver
url: jdbc:firebirdsql:localhost/3050:database.fdb

NOTE: database.fdb is an alias. In order to setup an alias you have to config aliases.conf located on your firebird configuration folder and do something like that:

#/etc/firebird2/aliases.conf

database.fdb = /databases/myblog/myblog.fdb

That’s all you need to work with firebird and rails.

3 Responses to “Firebird and Rails using jruby”


  • Wow, this is great…I’m glad it worked so quickly for you. Could you post this somewhere on wiki.jruby.org? And feel free to report any issues you find running Rails on JRuby with FireBird too!

  • Do you know the steps to using the Firebird native driver? I mean without going through JDBC

  • You have to install fireruby gem but I think this is not well maintained, if you use firebird 1.5 there should be no problem, but I down know about 2.0 and so.

    development:
    adapter: firebird
    host: localhost
    username: rails
    password: rails
    database: db/database.fdb
    charset: UTF8

Leave a Reply

Últims Twitts

Posting tweet...