fix RAILS_ROOT
fix post routes
merged