search for: html_upload_folder

Displaying 1 result from an estimated 1 matches for "html_upload_folder".

2006 Apr 11
2
class level "static" code in controller object not working
All, I have the following code that I put in my controller which I am using to initialize some static data. Note that it is not contained with a method of any kind. puts "test" config = YAML.load_file("config/config.yml") if config.nil? Dir.mkdir(config[''html_upload_folder'']) unless File.exist?(config[''html_upload_folder'']) I would like this code to only be executed ONCE when the controller class is loaded but what I am seeing is that every time I invoke a URL that is related to this controller I see "test" printed on the cons...