On 19 Nov 2008, at 11:18, Wincent Colaiuta wrote:
>
> I then added the following to config/environments/test.rb and config/
> environments/production.rb and those environments now work again.
>

A better way could be to move the requires from your environment.rb
into an initializer in config/initializers - this would mean they're
called at an appropriate moment in the boot process.

> config.cache_classes = false
>
> So it works, but it seems like a bad idea to deploy with that
> configuration due to the performance hit of reloading the classes with
> every request.
>
Yeah that would be a super bad idea

Fred
> I suppose there must be a better solution. Any suggestions?
>
> Cheers,
> Wincent
> 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to