subimage interactive wrote:
I’m deploying my app with Capistrano. Datebocks works beautifully on my
local machine, but when I send it to the server it looks as if the
engine_files (css/js) aren’t even being copied over into the public
directory.Have you run into this before? Any ideas what’s going on?
I have a similar issue… Datebocks works beautifully when running the
application via Webrick, but when I deploy it in an Apache/CGI
environment, it gives me the following error message:
undefined method `datebocks_field’ for #<#Class:0xb7848f6c:0xb7848f44>
(FYI: I posted this issue on this thread about a week ago) … I’m not
sure this is the same issue as yours, but it definitely appears that
the two problems might be related. Hopefully the following might be of
use to you:
I haven’t been able to resolve this issue yet, but I have been able to
verify that it is most likely not a permissions issue: by logging
“Engines.start.inspect” I can actually verify that both
“vendor/plugins/engines” and “vendor/plugins/datebocks_engine” are
loaded (and from the correct location) in the webrick as well as in the
apache/CGI setup.
However, in the Apache/CGI setup, it appears that the Datebocks engine
stuff isn’t correctly “included” in the ApplicationHelper module (and
hence not correctly mixed into the templates) which at least explains
the above error message…
Using “ApplicationHelper.method_defined? :datebocks_field” before and
after starting the engines, I seem to be able to confirm that somehow
the Datebocks stuff doesn’t get included: in my WebRICK environment, I
get “false”/“true”, but in my Apache/CGI environment I get
“false”/“false”… things that make you go hmmmmmmmmmm
But why it doesn’t get included is still a mystery… the investigation
continues. Anyway, maybe the above is useful info for you to get to
the bottom of your problem. FYI,
PV