I\'m using the PDFkit in my controller to build out a series of PDFs, zip them up, and then send them to the user.
config/application.rb ... # Enable the asset pipeline config.assets.enabled = true # Version of your assets, change this if you want to expire all your assets
I\'m having intermittent issues with images on Rails 3.1. The file in question is a simple PNG; all other images are working correctly. If I vist the asset path directly the image works as expected.
In CSS files, you can get the proper name of an image asset (with the fingerprint) by using: background-image: url(image-url(\"rails.png\"))开发者_高级运维
We have a Rails 3.1 app that allows users to upload photos to Amazon S3. Since we\'re using S3 in production I\'d like to automatically (on cap deploy) also upload the precompiled assets (application.
When I call image_url(\'path/to/image.png\') in my c开发者_JAVA技巧ss.scss file, I get this error:
How can I temporarily disable the asset pipeline functionality that Rails 3.1 p开发者_如何学Pythonrovides?
The release version of Rails 3.1 is having some weird issues with precompiling a sass manifest file with the extension scss. The weird thing is that the default manifest file application.scss compiles
Once you\'ve set up an application with the asset pipeline, it might generate an image for you with a URL like this (signature truncated):
I have been working on an upgrade to Rails 3.1 from 2.3.11. One of the main hurdles to clear is the conversion to the asset pipeline. In this process I decided to convert my css to sass (scss). In rai