Forum: Ruby on Rails Any way to audit view pages for missing h() calls?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
42172acdf3c6046f84d644cb0b94642c?d=identicon&s=25 Pat Maddox (pergesu)
on 2006-02-24 10:41
(Received via mailing list)
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
Ad7805c9fcc1f13efc6ed11251a6c4d2?d=identicon&s=25 Alex Young (Guest)
on 2006-02-24 12:03
(Received via mailing list)
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 '

?
This topic is locked and can not be replied to.