vhochstein / active_scaffold

Rails 4 Version of activescaffold supporting jquery
MIT License
156 stars 34 forks source link

cache_classes = true creates MissingTemplate problem #158

Closed davidyang closed 13 years ago

davidyang commented 13 years ago

Currently, if we try to run our Rails 3.0.3 application with ActiveScaffold (3.0.5) we are fine in development but we have a problem in production with closing sections (hitting the X). When we do that, it appears to want to get the row partial which right now is throwing a MissingTemplate error for our_controller/row (even though the view paths include the active_scaffold).

Is there something about cache_classes that is causing this (turning it to false fixes it in production). Is there a workaround?

vhochstein commented 13 years ago

Do you use this fork as a plugin? or do you use this fork as a gem active_scaffold_vho?

davidyang commented 13 years ago

Sorry - we found what was causing the bug. We were setting a Mime::Type responder for HTML in a different file, in development we never load that file but my thought is that in production it pre-loads it (or with cache_classes on) so it was affecting us. When we removed that line it was fine.

We use the fork as a plugin.

On Fri, Jun 10, 2011 at 5:44 AM, vhochstein < reply@reply.github.com>wrote:

Do you use this fork as a plugin? or do you use this fork as a gem active_scaffold_vho?

Reply to this email directly or view it on GitHub: https://github.com/vhochstein/active_scaffold/issues/158#comment_1340814

vhochstein commented 13 years ago

Great, I love issues, which can be solved by the reporter. :-)