I can\'t get the Rails 3.1 asset pipeline precompilation to work in production mode. It always fails on images referenced within SCSS with an error like:
I am converting a number of less files into a r开发者_运维问答ails app, and running into problems with the processing of variables and other less features.
I am working on a Rails 3.1 app. I have created an application.css.scss.erb file. The .erb is in the end because I want to load a variable from the config file as the color variable in the css:
One day I\'ve got jquery.js file corrupted (maybe because of my IDE, i don\'t really know), it has arbitrary number in the beginning. I can see this in the browser:
Using Rails 3.1 jquery_ujs, I have a link with :remote => true, and the controller new action responds with js and render new.js.erb which contains:
I\'m using the assets pipeline from Rails 3.1 and I want to include some javascript files only if it\'s the development environment.
I have recently upgraded an app from Rails 3.0 to 3.1. I have followed any instructions I could find for enabling the asset pipeline but it always fails when in the production environment:
I have a few .swf files that are being added to a project via a git submodule. They live in /vendor/private/widget/
Ok so, I\'m getting this error when I try to use the asset pipeline. I don\'t understand what\'s causing it.
How can I add my custom methods to my assets such as css files like Rails did with \'asset_path\' helper?