puts "merb init called" require 'active_record' ActiveRecord::Base.verification_timeout = 14400 ActiveRecord::Base.logger = MERB_LOGGER Dir[DIST_ROOT+"/app/helpers/*.rb"].each { |m| require m } require DIST_ROOT+"/app/controllers/application.rb" Dir[DIST_ROOT+"/app/controllers/*.rb"].each { |m| require m } Dir[DIST_ROOT+"/app/models/*.rb"].each { |m| require m } Dir[DIST_ROOT+"/lib/**/*.rb"].each { |m| require m } Dir[DIST_ROOT+"/plugins/*/init.rb"].each { |m| require m } # set your db info here ActiveRecord::Base.establish_connection( :adapter => 'mysql', :username => 'root', :password => 'xxxxx', :database => 'merb' ) # add your own ruby code here for app specific stuff. This file gets loaded # after the framework is loaded.