How do you convert a Rails 5 API app to a rails app that can act as both API and app?

前端 未结 3 823
情歌与酒
情歌与酒 2020-12-29 06:03

I initially created it in rails 5 with the --api tag.

From http://edgeguides.rubyonrails.org/api_app.html,

I removed config.api_only = true

3条回答
  •  长发绾君心
    2020-12-29 06:33

    So there's probably more things that will need to be done as I (you) go along, but to resolve the issue with stylesheets you need to manually create your views/layouts/application.html.erb and assets/stylesheets/application.css files.

提交回复
热议问题