Content-Length: 622075 | pFad | http://github.com/jruby/jruby/wiki/RunningRailsWithFirebird

2C RunningRailsWithFirebird · jruby/jruby Wiki · GitHub
Skip to content

RunningRailsWithFirebird

Popa Marius Adrian edited this page Jul 23, 2014 · 2 revisions

It has been tested with Jruby 1.1, rails 2.0.2 and activerecord-jdbc-adapter.

I supose you have jruby installed, then install rails 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.

Clone this wiki locally








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/jruby/jruby/wiki/RunningRailsWithFirebird

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy