Welcome to the Treehouse Community
Looking to learn something new?
Some routes does not works
Hi, i have upload my app, and did everything. But only login,logout,register and feed works, on the others i get a error.
Someone know why it could be?, on the logs i can't see anything helpful, also on 'heroku run rake routes' every routes are correct.(on local works).
Maciej Czuchnowski36,440 Points
You should check the logs and see what the exact errors are. Visit one of the pages that gives you an error, then in your terminal/console, while in your app's folder, run the
heroku logs command. This should download and display the last 100 lines of logs from your app's heroku. Go through them and look for clues.
Im getting this:
2015-05-02T02:20:31.361221+00:00 heroku[router]: at=info method=GET path="/estados/new" host=simple2.herokuapp.com request_id=d6ac1291-abcd-4eeb-8913-64a9e06b676c fwd="18.104.22.168" dyno=web.1 connect=2ms service=37ms status=500 bytes=1754
I found it in w3: 10.5.1 500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.
So i think is problem of heroku?
I have solve it, i don't really know how. But i was trying to reset de db with 'pg:reset' but was the same, after i did again and migrated it. Well it works but i m going to configure again on a different app.