Fix Rails helper