Hi Guys Thanks for the help - and the warning. I got the global variable thing working - in principle - but now rails complains that I cannot do something like
$rights = Rights.find(:all) in environment.rb I'm giving it up for a bad job - (not that I need to squeeze the last drop of performance out of the system yet) I think I'll stick to reading from the db every time as you suggest. (There is probably already caching of the table going on in the background in any case) I take the point that global variables are not stable enough, but it still strikes me as wasteful having to constantly access a small table which I know is not changing - millions of times more disk access and processor cycles than just reading it when the web server starts up and tagging it along in memory. But then - I am the first to admit that I am not really qualified to be making these statements ;) Thanks again for the assistance. You guys are great! Pieter -- Posted via http://www.ruby-forum.com/. -- 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.

