puts "merb init called" MERB_ROOT = Merb::Server.config[:merb_root] DIST_ROOT = Merb::Server.config[:dist_root] # add your own ruby code here for app initialization and load path stuff # comment out this whole part if you dont use active_record require 'active_record' ActiveRecord::Base.establish_connection( :adapter => 'mysql', :username => 'root', :password => 'xxxx', :database => 'merb' ) # leave this uncommented even without activerecord in case # you want to have models that don't inherit from AR Dir[DIST_ROOT+"/app/models/*.rb"].each { |m| require m }