, . , , , . .
, , . , show, . , , html, - . , @array.each do |a| end, , . , , . @page_title || #{@APP_CONFIG['page_title']} (. Railscasts # 85). , , , .
These are a few scenarios where presence and use checks can be avoided try. I will try to avoid them if possible. If you cannot avoid them, I would put conditional checks in the view helper and add an auxiliary unit test to check (and document) both code paths.
source
share