# Datebocks engine not loading on Dreamhost

**URL:** <https://www.ruby-forum.com/t/datebocks-engine-not-loading-on-dreamhost/81854>\
**Category:** Engines\
**Created:** [January 15, 2007, 7:58pm UTC](https://www.ruby-forum.com/t/datebocks-engine-not-loading-on-dreamhost/81854 "2007-01-15T19:58:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ol1barn3s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/9de053/32.png) [@ol1barn3s](https://www.ruby-forum.com/u/ol1barn3s)\
**Post date:** [January 15, 2007, 7:58pm UTC](https://www.ruby-forum.com/t/datebocks-engine-not-loading-on-dreamhost/81854/1 "2007-01-15T19:58:38Z")

</div>

Hello,  
I have the datebocks engine installed and working great on my local  
machine  
(macbook using Locomotive 2), but up on Dreamhost I get this undefined  
datebocks\_field error on my templates (see error message at the bottom  
of the email). I’ve triple checked that I have both the engines plugin  
and the datebocks\_engine plugin installed correctly, my environment  
config has Engines.start :datebocks, and both  
ApplicationController and ApplicationHelper include datebocks. I’ve  
killed and started new fcgi processes many times.

one thing I noticed on development was that sometimes I would get this  
same error when loading a view using datebocks for the first time  
after starting the server (Locomotive 2 uses Mongrel), but from the  
first refresh on it would work  
fine. perhaps this is related?

any help would be greatly appreciated, been stuck for several weeks,  
got no response on the Rails talk list (though there’s another thread  
mentioning the same problem), and so far no luck with the Dreamhost  
support people…

the error message:

ActionView::TemplateError (undefined method `datebocks\_field’ for  
#\<#Class:0x2509050:0x2509014\>) on line #54 of  
app/views/reservations/step1.rhtml:

54:

\<%= datebocks\_field “agreement”, “check\_out” %\>

#{RAILS\_ROOT}/app/views/reservations/step1.rhtml:54:in  
`_run_rhtml_reservations_step1' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb:149:in`fields\_for’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_view/helpers/form\_helper.rb:127:in  
`form_for' #{RAILS_ROOT}/app/views/reservations/step1.rhtml:36:in`\_run\_rhtml\_reservations\_step1’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_view/base.rb:316:in  
`compile_and_render_template' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:292:in`render\_template’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_view/base.rb:251:in  
`globalize_old_render_file' #{RAILS_ROOT}/vendor/plugins/globalize/lib/globalize/rails/action_view.rb:16:in`render\_file’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_controller/base.rb:726:in  
`render_file' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:648:in`render\_with\_no\_layout’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_controller/layout.rb:245:in  
`render_without_benchmark' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:53:in`render’  
/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/i386/lib/ruby/1.8/benchmark.rb:293:in  
`measure' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:53:in`render’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_controller/base.rb:942:in  
`perform_action_without_filters' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:368:in`perform\_action\_without\_benchmark’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_controller/benchmarking.rb:69:in  
`perform_action_without_rescue' /Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/i386/lib/ruby/1.8/benchmark.rb:293:in`measure’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_controller/benchmarking.rb:69:in  
`perform_action_without_rescue' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/rescue.rb:82:in`perform\_action’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_controller/base.rb:408:in  
`process_without_filters' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:377:in`process\_without\_session\_management\_support’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_controller/session\_management.rb:117:in  
`process' #{RAILS_ROOT}/vendor/rails/railties/lib/dispatcher.rb:38:in`dispatch’  
/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/i386/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/rails.rb:84:in  
`process' /Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/i386/lib/ruby/1.8/sync.rb:229:in`synchronize’  
/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/i386/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/rails.rb:83:in  
`process' /Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/i386/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:580:in`process\_client’  
/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/i386/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:579:in  
`process_client' /Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/i386/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:686:in`run’  
/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/i386/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:686:in  
`run' /Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/i386/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:673:in`run’  
/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/i386/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/configurator.rb:267:in  
`run' /Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/i386/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/configurator.rb:266:in`run’  
/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/i386/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel\_rails:127:in  
`run' /Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/i386/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/command.rb:211:in`run’  
/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/i386/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel\_rails:231  
/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/i386/bin/mongrel\_rails:18
