Fix Rails helper.