Skip to content
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

Fix wysiwyg.css linking #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix wysiwyg.css linking #35

wants to merge 1 commit into from

Conversation

arkadiybutermanov
Copy link
Contributor

There is an error in wysiwyg.css linking in production environment when using assets precompilation:

Currently this file is linked directly in js (https://github.com/stefanoverna/activeadmin-wysihtml5/blob/master/app/assets/javascripts/activeadmin-wysihtml5/base.js.coffee#L44). That's why it's Not Found after precompilation. File simply does not exists in a public/ directory, but precompilled wysiwyg-some-long-hash.css exists!

Maybe there are some better solutions to fix this issue, but I've decided just to add .erb extension to base.js.coffee file to have an ability to use there Rails's assets helpers.

@arkadiybutermanov
Copy link
Contributor Author

@stefanoverna could you please take a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant