You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Rails 5.1.4 and I can't get the stylesheet to work due to the path produced by Princely.
As the app is not in production yet, the stylesheet doesn't exist (in public) and even with rails assets:precompile the path has a MD5 hash in it so it's doesn't work either. I can't give Princely an absolute path to a stylesheet.
Do you have a good way to work around that?
For now, i just inlined the style in a style tag of the layout.
The text was updated successfully, but these errors were encountered:
If we go back to just include Princely::PdfHelper (instead of prepending it), then we will get the version of #asset_file_path defined in Princely::AssetSupport at runtime. But with this prepend, we end up getting the #asset_file_path from PdfHelper, which is not aware of the asset pipeline, and causes the problem described by this issue.
It appears that the switch from include to prepend was done intentionally for Rails 5 support, but there is no explanation as to why.
Hello,
I'm using Rails 5.1.4 and I can't get the stylesheet to work due to the path produced by Princely.
As the app is not in production yet, the stylesheet doesn't exist (in
public
) and even withrails assets:precompile
the path has a MD5 hash in it so it's doesn't work either. I can't give Princely an absolute path to a stylesheet.Do you have a good way to work around that?
For now, i just inlined the style in a
style
tag of the layout.The text was updated successfully, but these errors were encountered: