tommy.bonderenka tommy.bonderenka - 11 months ago 46
CSS Question

Hosting a stylesheet on the same server as the application using Rails Asset Pipeline

I am using a Javascript library requires a stylesheet to be hosted on the same domain as the application. Through the Rails Asset Pipeline my assets are being hosted on S3 and I want to continue doing this. I only need one singular stylesheet to exist on the same server as the application.

What is the best way to achieve this?


Turns out that it's as simple as just putting the file I'd like to be hosted with my Rails app in the public directory and then linking to the stylesheet from there.