コントローラーのindex
アクションを呼び出すと、対応するテンプレートは次の行を含むレイアウトを使用します。assets
index
assets
<%= javascript_include_tag 'prototype' %>
私が得るエラーは次のとおりです。
No route matches "/javascripts/prototype.js" with {:method=>:get}
これは私のルートファイルです:
ActionController::Routing::Routes.draw do |map|
map.resources :assets
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
end
ここで何が欠けている可能性がありますか?
このファイルのルートを明示的に定義する方法はありますか?