-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't use Rails.application.assets #105
Comments
This was referenced Mar 17, 2016
I had the same issue. Was able to resolve by changing the first few lines of _header.pdf.prawn to:
|
@mdavo6 This solution doesn't work in the development environment. |
@aman29april Agree. Have just had some time to work on a better solution which works in production and development. What about the below as an approach? Working for me in development and production.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have updated sprockets and now get
ActionView::Template::Error (undefined method
find_asset' for nil:NilClass)`.Rails.application.assets
isnil
unlessassets.compile
is set, which defaults tofalse
in production.See rails/sprockets-rails#237, i.e.:
The text was updated successfully, but these errors were encountered: