A few days ago, maccman released Bowline, which, in his words “lets you build cross platform desktop applications with Ruby, HTML and JavaScript”.
I’ve been playing around with at for the last couple of days, and although it has a lot yet to improve, it’s the most friendly desktop application framework I’ve seen.

Anyway, it has been discussed a lot about the framework itself. I just posted here to help a few of those who couldn’t get ActiveRecord models to work properly.
At least at my Mac, ActiveSupport raises an error when I created ActiveRecord models, as shown bellow:

[19:37:48:497] [Titanium.Ruby] [Error] An error occured while parsing Ruby on the page: /Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:443:in `load_missing_constant': uninitialized constant ActiveRecord

Which means that ActiveRecord wasn’t loaded. I don’t know why and, at least for now, won’t dig up the answer.

To work this around, I just created an initializer, at config/initializers called activerecord.rb

require 'activerecord'
require 'yaml'
 
config = YAML.load_file("#{APP_ROOT}/config/database.yml")
ActiveRecord::Base.establish_connection :adapter => 'sqlite3', :database => "#{APP_ROOT}/#{config['database']}"

And, voilà, you can now create Mac applications using our beloved ActiveRecord.

Update
Alex just gave me the fix for this, just by adding this line to environment.rb:

config.frameworks << :active_record

Probably too obvious for me to see. ;)