[template] Convert rails version to string explicitly (@alex-ross) #433