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
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
Pat M. 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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs