赞
踩
jruby -S gem install activerecord-jdbc-adapter
或者jruby -S gem install activerecord-jdbcmysql-adapter --include-dependencies
production: adapter: jdbc driver: com.mysql.jdbc.Driver url: jdbc:mysql://localhost:3306/database_production username: root password: root
新配置方法 production: adapter: jdbcmysql database: database_production username: root password: root host: localhost
if RUBY_PLATFORM =~ /java/ require 'rubygems' gem 'activerecord-jdbc-adapter' require 'jdbc_adapter' end
Rails框架>=2.0Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。