【发布时间】:2021-07-06 23:36:44
【问题描述】:
我一直在构建一个要部署到 Heroku 的 Rails 应用程序,我已经安装了一个导航栏来在应用程序中导航,直到最近它都运行良好。现在导航栏没有出现在应用程序上,即使当我在本地尝试任何东西时它仍然可以正常工作。我已经尝试过 rake assets:precompile、bundle install 和所有常见的嫌疑犯。我不知道具体该怎么做。我在测试和生产中附上了我的应用程序的屏幕截图。 This is the image of the two apps。当我在 Heroku 上的生产应用程序上创建帐户时,首先出现此错误。日志显示此错误 ActionController::RoutingError (没有路由匹配 [GET] "/assets/~bootstrap/scss/bootstrap")
【问题讨论】:
-
你检查过日志吗?
-
是的,我遇到了这个错误。 2021-04-12T02:24:58.493556+00:00 app[web.1]: F, [2021-04-12T02:24:58.493479 #4] 致命 -- : [9c9b6d9a-4543-45ca-890c-adaf051f5cd0] 2021-04-12T02:24:58.493572+00:00 app[web.1]: [9c9b6d9a-4543-45ca-890c-adaf051f5cd0] ActionController::RoutingError (没有路由匹配 [GET] "/assets/~bootstrap/scss /bootstrap")
标签: ruby-on-rails heroku navbar