- NuoDB's JDBC gem - jdbc-nuodb-1.0.gem
- NuoDB's Active Record gem - activerecord-jdbcnuodb-adapter-1.0.gem
- Sample application - sample/sample.rb
To run the sample do the following:
- Ensure that your jruby environment is configured correctly.
jruby -v jruby 1.6.5 (ruby-1.8.7-p330) (2011-10-25 9dcd388) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_26) [darwin-x86_64-java]
- Install the NuoDB gems
gem install jdbc-nuodb-1.0.gem gem install activerecord-jdbcnuodb-adapter-1.0.gem
- Verify that the gems are installed
gem list
- Run the sample:
jruby sample.rb
To use NuoDB in a JRuby Rails application:
- Include NuoDB information in the database.yml file as:
development: adapter: nuodb database: test username: cloud password: user
- In the Gemfile, call the nuodb gem with:
gem 'activerecord-jdbcnuodb-adapter'