asset-pipeline
How does one reference compiled assets from the controller in Rails 3.1?
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.[详细]
2023-04-04 12:12 分类:问答uglifier not working in rails
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[详细]
2023-04-04 03:19 分类:问答Rails 3.1 image asset timeout
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.[详细]
2023-04-04 01:54 分类:问答URL of images in JavaScript code using Rails 3.1 asset pipeline?
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\"))开发者_高级运维[详细]
2023-04-03 22:31 分类:问答Working Capistrano recipe for uploading precompiled Rails 3.1 assets to Amazon S3
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.[详细]
2023-04-03 19:41 分类:问答Rails 3.1 assets: Calling image_url in scss raises Unrecognized file type
When I call image_url(\'path/to/image.png\') in my c开发者_JAVA技巧ss.scss file, I get this error:[详细]
2023-04-03 18:38 分类:问答How can I disable Rails 3.1 Asset Pipeline?
How can I temporarily disable the asset pipeline functionality that Rails 3.1 p开发者_如何学Pythonrovides?[详细]
2023-04-03 17:42 分类:问答Precompiling a .scss manifest file using Rails 3.1's asset pipeline
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[详细]
2023-04-03 17:20 分类:问答Rails 3.1 asset pipeline: how to deal with requests to expired assets?
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):[详细]
2023-04-03 16:18 分类:问答Rails 3.1 SASS asset helpers not not including RAILS_RELATIVE_URL_ROOT / relative_url_root
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[详细]
2023-04-03 15:48 分类:问答