does require 'lib/formatters' work?
On Feb 10, 2008, at 10:11 PM, John Wells wrote: > Hi guys, > > New to backgroundrb, and I like it very much conceptually, but I'm > struggling to get it to run successfully. I started with trunk, but > was getting a very strange gem require error when starting a worker > (though it wasn't telling me which gem was missing)....see here: > http://pastie.caboo.se/150225 > > So I rolled back to the release 1.0.1 tag but had different problems > there. I have my own "acts_as" plugin that's required in my > environment.rb....it's stored in lib/formatters.rb. However, > backgroundrb complains about it not being there in startup: > > $ script/backgroundrb start > > /home/jb/workspace/ruby/eqnow_dev/vendor/rails/activerecord/lib/ > active_record/base.rb:1238:in > `method_missing': undefined method `acts_as_phone_formatter' for > Event:Class (NoMethodError) > from /home/jb/workspace/ruby/eqnow_dev/app/models/event.rb:45 > from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb: > 27:in > `gem_original_require' > from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb: > 27:in > `require' > from /home/jb/workspace/ruby/eqnow_dev/vendor/rails/ > activerecord/lib/../../activesupport/lib/active_support/ > dependencies.rb:495:in > `require' > from /home/jb/workspace/ruby/eqnow_dev/vendor/rails/ > activerecord/lib/../../activesupport/lib/active_support/ > dependencies.rb:342:in > `new_constants_in' > > It's definitely there in my config/environment.rb: > > require 'formatters' > > My backgroundrb.yml looks like: > > --- > :backgroundrb: > :ip: localhost > :port: 11006 > :environment: development > > I'm completely at a loss on how to proceed. I'd really like to use > it... (I *need* it) but not sure how to get it running properly. > > Can anyone help? > > Thanks for any assistance you might provide! > > John > _______________________________________________ > Backgroundrb-devel mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/backgroundrb-devel _______________________________________________ Backgroundrb-devel mailing list [email protected] http://rubyforge.org/mailman/listinfo/backgroundrb-devel
