changes last two rhtml files to rhtml
fix regexp warnings
RAILS_ROOT -> Rails.root