fix RAILS_ROOT
fix post routes