Forum: Ruby on Rails Weird MissingTemplate error in production only

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3883625233409e28be3b9e1ee48a3efe?d=identicon&s=25 Xavier (Guest)
on 2006-03-06 18:00
(Received via mailing list)
Hi Folks!

I've been using Rails for more than a year now and I've been
struggling with a very strange issue since last week.  My Rails app
won't render any template when running in production environment.

All actions (even the default behaviour when the action is left empty)
will fail in assert_existance_of_template_file.

If I force the full absolute path down the throat of my render :file
call, it won't eventually raise the exception but nothing gets
rendered, the message in production.log seems incomplete (stops after
Rendering "foo/bar", no benchmarking info) yet webrick returns with an
HTTP status code 200...

Rendering text or inline template works just fine both in development
and production.

I have the problem with both Ruby 1.8.2 and 1.8.4, tested on OS X
Tiger PPC and Intel as well as Debian sarge, both from packages and
built from source, no can do.  All machines have the same version of
Rails.  Not to mention that a lot of Rails app happily run in
production mode on those servers without major troubles...

I also forgot to say that the whole path to the files is readable.

I already spent countless hours trying to figure out what goes wrong
but I really can't see what could I have done to cause that problem...

I'm supposed to ship that application and I can't get it working in
production mode, it's really embarassing to say the least... any help
will be very appreciated!

Cheers,

Xavier
This topic is locked and can not be replied to.