search for: lookup_value

Displaying 3 results from an estimated 3 matches for "lookup_value".

Did you mean: lookup1_values
2006 Jan 02
5
NoobyQ: how to work with a table of static lookup data??
Hello out there! Nooby question: What''s the "Rails" way to work with tables of relatively static lookup data? Objectively (I''m thinking); I don''t want to hit the DB each time, so for each lookup table, initialize a globally available hash with lable/value pairs... Am I on the right track? How would you do this kind of thing in Rails? Thanks! --
2011 May 13
18
Thoughts about extlookup: http://blog.wl0.org/2011/05/thoughts-about-extlookup-in-puppet/
Hi, I have been trying to improve the coding of some of my puppet recipes and had some trouble so wrote this: http://blog.wl0.org/2011/05/thoughts-about-extlookup-in-puppet/ Comments on the web seem to indicate that extlookup() solves "all problems" but I don''t really see that and hence have proposed a possible way to keep the data closer together and make the extlookup()
2006 Jan 24
2
NULL id''s / invalid references
Hi, could you suggest me how to handle this in a proper way? I have a table which has othertable_id column (relationship is belongs_to) Problem is, that sometimes there is a NULL value and table.othertable.foo returns an error... what should I do about it? change something in model? in view? or just add "unknown" row to othertable and update table.othertable_id with id of this