# How to: Rails with JRuby/Actice Record-JDBC and JDBC-ODBC

**URL:** <https://www.ruby-forum.com/t/how-to-rails-with-jruby-actice-record-jdbc-and-jdbc-odbc/111088>\
**Category:** Rails\
**Created:** [August 2, 2007, 3:04pm UTC](https://www.ruby-forum.com/t/how-to-rails-with-jruby-actice-record-jdbc-and-jdbc-odbc/111088 "2007-08-02T15:04:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![commander](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/df705f/32.png) [@commander](https://www.ruby-forum.com/u/commander)\
**Post date:** [August 2, 2007, 3:04pm UTC](https://www.ruby-forum.com/t/how-to-rails-with-jruby-actice-record-jdbc-and-jdbc-odbc/111088/1 "2007-08-02T15:04:07Z")

</div>

hi to all,

it is posible to use activerecord-jdbc with the jdbc-odbc bridge?

i have problems to use ajax\_scaffold. i get an error message, that the  
driver is unable to choose type for date from(list of datatypes)

my database.yml look like

development:  
adapter: jdbc  
driver: sun.jdbc.odbc.JdbcOdbcDriver  
url: jdbc:odbc:ac43demo  
username: ac\_odbc  
password: ac\_odbc

i have modified the environment.rb like

require ‘rubygems’  
gem ‘ActiveRecord-JDBC’  
require ‘jdbc\_adapter’

any ideas???

thx

Achim
