This project is archived and is in readonly mode.
/assets route should not be prefixed
Reported by Oleg | May 3rd, 2011 @ 04:46 PM
Sprokets thing is attached as a last route. So if I have something like this in my routes:
Rails.application.routes.draw do
get '/' => :render_page, :as => 'pages', :path => '(*page_path)'
end
My catch-all route will not allow /assets to map to a proper
place. This is what I see in rake routes
pages GET /(*page_path)(.:format) {:controller=>"pages", :action=>"render_page"}
/assets {:to=>#<Sprockets::Environment:0x00000100f5d240 ...
/assets route should be defined before any of my application routes.
Comments and changes to this ticket
-
Mike Howard May 7th, 2011 @ 09:36 PM
This is Pilot error
rake route dies with 'missing controller' on this route file.
Need to specify controller for the generic route.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>