ericallam / font_assets

Helps with serving font assets with Rails 3.1
137 stars 79 forks source link

"No such middleware to insert before: ActionDispatch::Static" on Rails 5.0.2 #55

Closed christiannelson closed 7 years ago

christiannelson commented 7 years ago

Something font_assets is depending on in the middleware chain has changed in Rails 5.0.x.

sevenseacat commented 7 years ago

Same error here. It looks like that means you've got config.serve_static_assets = false, which according to https://github.com/ericallam/font_assets#important means this gem isn't for you. (Or me.)

christiannelson commented 7 years ago

Ah, that makes sense. I saw the error when I ran in production mode locally, which was missing the env var flag for enabling static assets serving. All good.