search for: pconfig_src

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

2010 Jan 02
2
Underscore in a model's method causes it not to be called from the form helper
Hi, I''m using rails 2.3.5 and found following behavior, which I can''t explain. Maybe someone can. I have a model named ''Game''. Its database schema contains a field named ''pconfig_src''. I want to lazy load the pconfig_src value, so added following method to the model: def pconfig_src read_attribute(''pconfig_src'') || GameHost::phost_pconfig_src end GameHost::phost_pconfig_src returns the default value stored in a file. Now if I create a form in...