Pat Maddox
2006-Feb-24 09:40 UTC
[Rails] Any way to audit view pages for missing h() calls?
I''ve got an app that has about a gazillion <%= statements in the view pages. I''m pretty sure I''m using h() everywhere I need to, but is there an easy way to figure out if there are any calls I''ve made that are missing h() and need it? Pat
Alex Young
2006-Feb-24 11:01 UTC
[Rails] Any way to audit view pages for missing h() calls?
Pat Maddox wrote:> I''ve got an app that has about a gazillion <%= statements in the view > pages. I''m pretty sure I''m using h() everywhere I need to, but is > there an easy way to figure out if there are any calls I''ve made that > are missing h() and need it? >grep ''<%='' view.rhtml | grep -v ''<%=\s*h '' ? -- Alex