Thought I will answer this question myself based on further searches.
Rails: JSON URL returning HTML
-
30-07-2022 - |
Pergunta
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?
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow