RubyCocoa : ActiveRecordSupport

Since RubyCocoa 0.11.0 there is a set of Cocoa subclasses which try to be the glue between Cocoa Bindings and ActiveRecord.
Allowing you to create a CoreData like application, but instead using ActiveRecord as a backend.
There's a sample which illustrates the use of this in sample/MailDemo/MailDemoActiveRecordBindings.

I try to add documentation to the source code while I write it, so you should be able to get at least some info from it.
To create html documentation, from the root of the rubycocoa source directory do:
$ rdoc framework/src/ruby/osx/objc/active_record.rb --op ~/Desktop/ActiveRecordBindings

This should create a directory on your desktop with the html files.

Includes


Tips

How to connect to db's?
For instance, if you would like to connect to a mysql db, simply use the following code to connect.
(See http://railsmanual.org/class/ActiveRecord%3A%3ABase#establish_connection for more examples.)
# Connect to the database
ActiveRecord::Base.establish_connection({
 :adapter => 'mysql',
 :host => 'localhost',
 :username => 'user',
 :password => 'pass',
 :database => 'db'
})


TODO


External references

© 2001-2007 The RubyCocoa Project. Powered by Wikka Wakka Wiki 1.1.6.3
SourceForge.net Logo
Page was generated in 0.1555 seconds