Automatic Caching?

Hello,

I have a big controller of about 1000 lines and whenever I make changes
to views the browser does not show the updated code. I am running in
development mode which makes it all more confusing.

This happens in both rails 1.0.0 and 1.1.2 and both in ruby 1.8.2 and
1.8.4.
It also happens for fcgi and scgi. Also for apache, webrick, and
mongrel. At this point I have no idea what is going on.

If you have any suggestions please let me know,

Roland

First of all, why so big?
I don’t know of any issues, but when you restart the webserver/process
does it read the updated code fine?


Timothy J.
www.foundinteractive.com

Actually, the controller grew with time, and since it was started by
someone else, I kept working in it.

Yes, I have to reload the webserver everytime to get the new updated
view.

Roland

Only thing I can guess is that if “I” have more than 20 actions, it’s
time to start a new controller. Is this happening in Production mode
also.


Timothy J.

Roland M. wrote:

Hello,

I have a big controller of about 1000 lines and whenever I make changes
to views the browser does not show the updated code. I am running in
development mode which makes it all more confusing.

This happens in both rails 1.0.0 and 1.1.2 and both in ruby 1.8.2 and
1.8.4.
It also happens for fcgi and scgi. Also for apache, webrick, and
mongrel. At this point I have no idea what is going on.

If you have any suggestions please let me know,

Roland

Maybe check the environments/development.rb to see if class caching is
turned on.

Same thing happens in production mode too…

I guess I will have to split the controller and organize things better.

Thanks Timothy for your help.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs