add action view extension helper methods extracted from another Rails project