【发布时间】:2023-03-14 00:05:01
【问题描述】:
在我的config/routes.rb 我有以下内容
Myapp::Application.routes.draw do
# We ask that you don't use the :as option here, as Refinery relies on it being the default of "refinery"
mount Refinery::Core::Engine, :at => '/'
# You can have the root of your site routed with "root"
# just remember to delete public/index.html.
root :to => 'refinery/blog/posts#index'
# See how all your routes lay out with "rake routes"
end
我在终端中运行了rake routes。然后承诺并推动。然后运行heroku run rake routes,但是当我加载应用程序时,它仍然以root身份加载主页。
【问题讨论】:
标签: ruby-on-rails heroku refinerycms