When I call the index
action of my assets
controller, the corresponding index
template uses the assets
layout which includes this line:
<%= javascript_include_tag 'prototype' %>
The error I get is:
No route matches "/javascripts/prototype.js" with {:method=>:get}
This is my routes file:
ActionController::Routing::Routes.draw do |map|
map.resources :assets
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
end
Any idea what I could be missing here?
Is there a way to explicity define a route for this file?