简体   繁体   中英

Locally works fine, on server -

When running my rails app locally, everything works fine. However, when deployed to a server, I get the following error:

ActionController::UnknownFormat (TasksController#index is missing a template for this request format and variant.

It's similar for all the pages. What could be the problem?

Rails version is 5.0.1. The deployed application is running on unicorn and nginx. I'm using slim templates. The same problem appears either if the views have .slim extension or .html.slim .

The slim gem might not be installed on your server. Try running bundle install on the command line in your app directory and then restarting your server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM