Skip to content

Sprockets doesn't work alongside with catch-all routes #436

@GBH

Description

@GBH

This is a copy of: https://rails.lighthouseapp.com/projects/8994/tickets/6768-assets-route-should-not-be-prefixed

Long story short, the moment I introduce a catch-all route like this:

match '/*', :to => 'test#test'

Sprockets won't serve anything as /assets is taken over by my route. Before rake routes would actually show that sprockets relates routes come after my application routes. Now it won't show anything but I'm sure those routes are attached after. I think Sprockets routes have to be attached before any application/engines routes.

I'd fix it myself, but I have no idea where to look. Thanks.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions