[英]Rails 4 not showing routes in 'rake routes' but views are working
几乎如标题所述,我的路由文件中包含以下内容:
root to: 'assets#index'
resources :assets do
member do
get :download
end
end
但是我的rake routes
和访问rails/info/routes
的输出都只是:
Prefix Verb URI Pattern Controller#Action
root GET / assets#index
但是在我看来,这些路线运转良好。
我还尝试了bundle exec
并已将其更新为最新版本的bundle,如其他一些帖子所建议的那样。 它仍然适用于我的Rails 3应用程序。
:assets是Rails中的保留路径。 因此,您无法真正使用它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.