It's because I am building a web application which included an API inside. With the --api flag, I lose the initial configuration to render HTML views.
I did that instead of having 2 separated applications because I prefer to handle the routes with Rails, and after that, load the correct React application.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Why use a gem for json instead of using the --api flag when creating the new rails project?
It's because I am building a web application which included an API inside. With the
--api
flag, I lose the initial configuration to render HTML views.I did that instead of having 2 separated applications because I prefer to handle the routes with Rails, and after that, load the correct React application.