Forum: Rails Engines datebocks engine not loading on Dreamhost

648d60296e65a1278017c0b9f960ec3a?d=identicon&s=25 Oliver Barnes (ol1barn3s)
on 2007-01-15 19:54
Hello,
I have datebocks 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:   <td><%= 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
This topic is locked and can not be replied to.