asset-pipeline

Rails 3.1 SASS asset helpers not not including RAILS_RELATIVE_URL_ROOT / relative_url_root

微笑、不失礼 提交于 2020-01-04 03:11:49
问题 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 rails 3.1 all assets delivered through the pipeline receive a hash appended to the filename in production. Because of this, all the images referenced in my css now needed to use the image-path or image-url helpers in sass. The issue is, that even though I have set my ENV['RAILS_RELATIVE_URL_ROOT']

Rails 3.1 SASS asset helpers not not including RAILS_RELATIVE_URL_ROOT / relative_url_root

主宰稳场 提交于 2020-01-04 03:11:22
问题 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 rails 3.1 all assets delivered through the pipeline receive a hash appended to the filename in production. Because of this, all the images referenced in my css now needed to use the image-path or image-url helpers in sass. The issue is, that even though I have set my ENV['RAILS_RELATIVE_URL_ROOT']

Ruby on Rails 3.2 compiled assets are not working

三世轮回 提交于 2020-01-03 17:30:50
问题 Is this a bug in Rails' asset? I don't see what I am doing wrong. Can you please help? I don't want to do on-demand compiling... The bug: Started GET "/" for 127.0.0.1 at 2012-02-02 01:25:44 +0200 Processing by StaticPagesController#home as HTML Rendered static_pages/home.html.erb within layouts/application (11.8ms) Rendered layouts/_stylesheets.html.erb (3.1ms) Completed 500 Internal Server Error in 33ms ActionView::Template::Error (blueprint/screen.css isn't precompiled): 1: <!--[if lt IE 9

How can I turn off asset compilation completely on a rails app on Heroku?

穿精又带淫゛_ 提交于 2020-01-03 17:24:12
问题 I have a rails app which runs a service which has no assets. When I deploy, I see: -----> Preparing app for Rails asset pipeline Running: rake assets:precompile rake aborted! could not connect to server: Connection refused Is the server running on host "127.0.0.1" and accepting TCP/IP connections on port 5432? /tmp/build_3pneyggcg60ks/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.14/lib/active_record/connection_adapters/postgresql_adapter.rb:1222:in `initialize' /tmp/build_3pneyggcg60ks

Bootstrap CSS loading with bootstrap-sass, other CSS won't load

若如初见. 提交于 2020-01-03 17:07:07
问题 I'm using Bootstrap for my Rails application with bootstrap-sass v. 3.1.1, which has been working just fine with the following in my application.css.scss file: @import "bootstrap"; and nothing else. Just today I tried adding some of of own CSS for some added styling that I don't get with Bootstrap. It's for my welcome view/controller so I just added it to welcome.css.scss .complete-class { text-decoration: line-through; } From reading this section of the Rails Guides my understanding was that

Rails 3.1 Asset Pipeline and Caching

我的梦境 提交于 2020-01-03 16:56:38
问题 I'm working with Rails 3.1's asset pipeline and although it seems to work flawlessly in my development environment on my localhost, I'm having huge issues with it on engine yard. Here's my basic problem. When I include images for a background in one of my scss files: a { color: #3c7f8b; font-weight: bold; padding-left: 35px; font-size: 13px; display: block; background: white url(shade.png) top right; &:hover { color: #222222; background: white url(shade2.png) top right; } &.on { color:

Rails 3.1 Asset Pipeline and Caching

时光怂恿深爱的人放手 提交于 2020-01-03 16:56:34
问题 I'm working with Rails 3.1's asset pipeline and although it seems to work flawlessly in my development environment on my localhost, I'm having huge issues with it on engine yard. Here's my basic problem. When I include images for a background in one of my scss files: a { color: #3c7f8b; font-weight: bold; padding-left: 35px; font-size: 13px; display: block; background: white url(shade.png) top right; &:hover { color: #222222; background: white url(shade2.png) top right; } &.on { color:

javascript included twice in a Rails 3.1 asset-based app

∥☆過路亽.° 提交于 2020-01-03 15:56:56
问题 Although the title of the question is very similar to a number of previous ones, my issue seems different. Briefly, the first item in the js manifest is included twice. Here's the whole of my /app/assets/javascript/application.js file in a Rails 3.1 application: //= require jquery //= require jquery-ui //= require jquery_ujs //= require autocomplete-rails //= require utilities And here's a snippet of the rendered page's source: <script src="/assets/jquery.js?body=1" type="text/javascript"><

Rails 4 asset pipeline losing vendor assets

荒凉一梦 提交于 2020-01-03 08:59:30
问题 I can't seem to figure out how to make sprockets find assets in vendor/assets . I've ben been pushing off the problem by adding all of my assets to app/assets , but it's becoming way too cluttered. I have read the documentation, and tried adding all of the following lines to my application.rb file. config.assets.paths << "#{Rails.root}/vendor/assets/*" config.assets.paths << "#{Rails.root}/vendor/assets/fonts" config.assets.paths << "#{Rails.root}/vendor/assets/stylesheets" config.assets

Assets Precompile with Docker on AWS Elastic Beanstalk

痞子三分冷 提交于 2020-01-03 00:52:48
问题 I'm running a rails (4.2.10) application on Docker running on 64bit Amazon Linux/2.12.6. The application is running successfully, however, the asset pipeline is not. Oddly, I'm not receiving any error messages that I can see. Furthermore, there are assets in app/public/assets For example this .css file exists: <link rel="stylesheet" media="all" href="assets/application-e627105c73433d07311d93ea3e4f53942589150887a45432397a6b1e80017a2e.css"> Dockerfile: FROM ruby:2.4.2 ENV APP_HOME /app ENV