changed routes.rb trying to solve this postgres 500 server error