basedir = File.dirname(__FILE__) #Require the files necessary for Rails integration require File.join(basedir, 'rails', 'action_controller_class_methods') require File.join(basedir, 'rails', 'action_controller_instance_methods')