Hi folks,

Just after a 'best-practise' pointer with this one really;

I have a 'setup' model for my application which only has a single
record, holding the current settings of the app e.g. its mode
(maintenance, normal, readonly) etc

I need to check the app's settings, at least once per page-load,
sometimes more.

I know I could do this easily by pulling the record each time but was
wondering if using global variables or something like a helper would
be better? I do need to make these calls in both the controllers and
views however.


Thanks in advance,


Paul

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to