How to explicitly declare routes for assets?

255 views Asked by At

I have an app where the routes are:

# many routes go here

# last item in routes.rb:
get ':username' => 'users#show'

This allows routes of the form www.example.com/your_username

This works perfectly, however, it seems to cause a bug with asset/image urls.

Is there a way to explicitly define (the default) asset/image routes? (I figure if they're placed before the last line, then they should function as normal)

0

There are 0 answers