Skip to content

Instantly share code, notes, and snippets.

@jvnill
Created June 11, 2014 00:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jvnill/414e4dd75297de6307b9 to your computer and use it in GitHub Desktop.
Save jvnill/414e4dd75297de6307b9 to your computer and use it in GitHub Desktop.
I want to use `/blog` as the url but I created a `PostsController` so I have to set the `path` option in the routes.
resources :posts, path: '/blog'
This is working fine in development but when I deploy it to heroku, I get a 500. The logs doesn't seem helpful at all, you'll get the normal log like the one below but the status is 500 so I'm a bit lost on the cause of the issue
at=info method=GET path=/path_name host=www.example.com request_id=some-random-numbers-here fwd="xxx.xxx.xxx.xxx" dyno=web.1 connect=2ms service=95ms status=500 bytes=37419
And yep, I'm using a custom url so that may also be part of the issue. What I did to fix it was to change the posts controller to a blog controller.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment