Thought I will answer this question myself based on further searches.
Rails: JSON URL returning HTML
-
30-07-2022 - |
Question
I have a Rails 4 application, and the URL localhost:3000/resources.json returns and HTML file, instead of JSON. The index.json.jbuilder is generated by Rails scaffold itself. Any idea why the JSON output is going wrong?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow