资源的路径索引

问题描述:

什么是资源的等效索引路径:主题如果我手动写出来的话?
当我在routes.rb文件中显示的资源行运行rake路由时。资源的路径索引

GET /topics(.:format)   {:action=>"index", :controller=>"topics"} 

我已经尝试了一些事情没有成功,例如:

get 'topics/index' #=> 'topics#index' 

的路线说:

get "/topics" => "topics#index", :as => :topics 

您现在可以使用topics_path或topics_url