update template for rails 4