Update helpers.rb

https://gist.github.com/castus/4044953