replace rails_template.rb