Add #to_s method to rails version