unmantained-activeadmin-plugins / activeadmin-wysihtml5

MIT License
87 stars 91 forks source link

Fix wysiwyg.css linking #35

Open arkadiybutermanov opened 10 years ago

arkadiybutermanov commented 10 years ago

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 commented 10 years ago

@stefanoverna could you please take a look?