Hello!!
How can i disable the rails 3.1 in development mode from serving images?
I have some pages with tons of images and sometimes the page takes more
than 10 seconds to load…
Thanks!
Hello!!
How can i disable the rails 3.1 in development mode from serving images?
I have some pages with tons of images and sometimes the page takes more
than 10 seconds to load…
Thanks!
Nvm, the problem was with mongoid!
MODEL PRELOADING
In order to properly set up single collection inheritance, Mongoid needs
to preload all models before every request in development mode. This can
get slow, so if you are not using any inheritance it is recommended you
turn this feature off.
config.mongoid.preload_models = false
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs