javascript - How to only use relative paths in Rails, instead of using the asset pipeline? -
i trying integrate components multiple websites own rails website. images, css files, , javascript files numerous , scattered in nested directories. if copy folders 'app/assets' folder, this:
app/assets/website1/a/b/c/d/image1.jpg app/assets/website2/e/f/g/style.css app/assets/website3/h/i/j/k/custom.js
if try reference above items with:
<img src="/app/assets/website1/a/b/c/d/image1.jpg"> <link rel="stylesheet" href="/app/assets/website2/e/f/g/style.css"> <script src="/app/assets/website3/h/i/j/k/custom.js"></script>
respectively, not load @ all. prefer use relative paths because using asset pipeline nightmare such nested directories. describing possible?
have tried disabling asset pipeline in config/application.rb adding following line ?
config.assets.enabled = false
havn't tested it. let me know if works.
Comments
Post a Comment