Create the "ironrubytest1" database in SQLServer Express
Extract to a no-space path;
C:\IronRuby
is preferred. Also addC:\IronRuby\bin
to the path:set PATH=%PATH%;c:\IronRuby\bin
Install ActiveRecord:
igem update --system
igem install activerecord --no-rdoc --no-ri
Download and extract to following archives into the given directory (all siblings of each other):
- http://github.com/casualjim/ironruby-dbi/zipball/master =>
ironruby-dbi
- http://github.com/rails-sqlserver/2000-2005-adapter/zipball/master =>
sqlserver-adapter
- http://gist.github.com/gists/273403/download =>
sqlserver-adapter-patch
- http://gist.github.com/gists/273430/download =>
ir-ar-test
Run the IronRuby ActiveRecord test:
cd path\to\ir-ar-test
ir.exe ir-ar-test.rb
Which outputs this:
loading rubygems ...
loading activerecord ...
creating logger ...
adjusting path for ironruby-dbi and sqlserver-adapter ...
loading sqlserver-adapter ...
patching sqlserver-adapter for ADO integrated security ...
Establish connection to sqlserver ...
Migrating ...
== CreatePeople: migrating ===================================================
-- create_table(:people)
-> 0.0320s
== CreatePeople: migrated (0.0470s) ==========================================
Defining models ...
Loaded suite TestCRUD
Started
....
Finished in 1.255072 seconds.
4 tests, 12 assertions, 0 failures, 0 errors