Forum: Ruby on Rails How to: Rails with JRuby/Actice Record-JDBC and JDBC-ODBC

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Achim D. (Guest)
on 2007-08-02 17:04
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
This topic is locked and can not be replied to.