asset-pipeline Questions
4
I've been round and round here with trying to get the assets to pre-compile on my production server (straightforward ubuntu install with ruby 1.9.2 and Rails 3.1.1, and tried 3.1.2RC with the new s...
Epigraphy asked 17/11, 2011 at 17:57
2
Solved
I'm using Rails again after a few years away (last used Rails 4). I have multiple stimulus controllers that reference a file called metric_defaults.js. That file just contains a flat set of definit...
Unattached asked 27/4, 2023 at 3:3
7
Solved
I'm working on getting a new Rails 7 project deployed to production (trying on both Heroku and Render.com) and am getting the following error during build:
$ tailwindcss -i ./app/assets/stylesheets...
Sistrunk asked 18/12, 2021 at 4:56
6
Solved
we've just upgraded to Rails 3.2.5 from Rails 3.0.7 and using the assets-pipeline compilation on the fly for the staging server, but some times we face this exception !
Showing /var/rails/appname/...
Fanjet asked 13/6, 2012 at 11:19
4
Solved
Is there any way to ask the Asset Pipeline if an asset exists? The suggestions I largely see involve manually checking the file path with File.exist?. The problem with that is that I have several g...
Hybridism asked 13/9, 2014 at 18:59
27
I am doing assets pre-compile, and running the application in production mode. After compilation when I load the my index page I got followings warnings in the chrome console:
Failed to decode dow...
Praetor asked 15/12, 2015 at 12:2
4
Solved
I've been pulling my hair out for this one. I've always had a bad relationship with the asset-pipeline, it is always giving me trouble.. And today again..
When I try and compile my assets locally,...
Bobbysoxer asked 17/7, 2014 at 16:58
9
Solved
I recently upgraded my application to rails 3.1 and generally everything seems to be working but one thing is driving me insane.
I have 2 main js files, we'll call them, application.js and main.j...
Kristoforo asked 1/10, 2011 at 4:52
3
I've been trying to add a background picture with the help of Tailwind in my project but it won't work, I'm guessing because of an asset-pipeline conflict somewhere ?
What I've tried:
Inserting th...
Crescint asked 28/3, 2021 at 14:44
5
Solved
I'm new in Ruby and in ROR framework. I try to create web app with JQuery. My steps are:
Added gem 'jquery-rails' and executed bundle install command from command line
String //= require jquery2 ...
Maeda asked 21/7, 2017 at 12:17
5
Solved
I just upgraded my app from Rails 4.2.7 to Rails 5.0.0.1. I used RailsDiff to make sure I had everything covered and I believe I did. So far everything has worked well up until the loading of my ap...
Velum asked 2/9, 2016 at 14:30
6
Solved
I'm trying to deploy my rails app to heroku using this turtorial:
https://devcenter.heroku.com/articles/getting-started-with-rails4
So, I use rails 4.1.1 and ruby 2.1.1
My Gemfile has gem 'rail...
Leapfrog asked 15/5, 2014 at 20:26
7
I changed a JS file under app/assets/javascripts but it is still the same. I deleted the file and re-created but the content is still the old one. This is my development.rb file:
App::Application....
Protractile asked 1/6, 2012 at 12:21
20
Solved
I ran into an issue in my Rails 4 app while trying to organize JS files "the rails way". They were previously scattered across different views. I organized them into separate files and compile them...
Euxenite asked 12/9, 2013 at 17:16
7
Solved
Could somebody explain to me what the command rake assets:clean really does? Unfortunately the Rails Guides dont mention it. There is also the command rake assets:cleanup. Whats the difference?
Fu...
Profitable asked 17/2, 2012 at 21:40
13
Solved
I have some fonts being configured in my Scss file like so:
@font-face {
font-family: 'Icomoon';
src: asset-url('icoMoon.eot?#iefix', font) format('embedded-opentype'),
asset-url('icoMoon.woff'...
Tridentine asked 5/6, 2012 at 22:29
6
Solved
I'm getting that error on my production server, and can't figure out why. It happens when running this command:
bundle exec rake assets:precompile RAILS_ENV=production
I'm using Rails 3.1.0.rc6
...
Conation asked 26/8, 2011 at 14:12
4
I'm testing my Rails 4 app in the production environment on my localhost:3000 using the built in Webrick server. When I run RAILS_ENV=production bundle exec rake assets:precompile the assets are re...
Squarerigger asked 20/4, 2014 at 12:58
2
Solved
I have a cedar application that uses Rails 4.0 and the asset pipeline. I'd like to set custom headers for all assets from the asset pipeline. How can this be done?
Stutman asked 8/7, 2013 at 8:7
18
CSS won't load in my rails app. This is index.html.erb file located in view/products:
<h1>Listing products</h1>
<table>
<% @products.each do |product| %>
<tr class="&...
Laddy asked 7/12, 2011 at 21:2
3
Trying out rails 7, with tailwind and postcss.
I have a few stylesheets in assets/stylesheets, which I import through a file called imports.css in the same folder.
//imports.css
@import stylesheet1...
Threatt asked 28/1, 2022 at 0:58
4
I am creating a RoR-6 app and I get the following error thrown from application.html.erb file from this line:
javascript_include_tag 'application', 'data-turbolinks-track': 'reload'
I get the fo...
Flawy asked 30/4, 2019 at 1:44
7
I'm trying to get a new production server up and running and it is so close. When I execute
RAILS_ENV=production rake assets:precompile
This error is returned
undefined method `[]' for nil:NilC...
Arlberg asked 7/9, 2012 at 7:25
6
Solved
Goal: Using my rails app with static images in assets in production environemt
Steps:
I turned my rails app to production environment.
Precompiled the assets with RAILS_ENV=production rails asse...
Aalto asked 22/3, 2018 at 23:53
8
In Rails 5.1.3
I change logo file in app/assets/images
Then error don't know what to fix. Any one know ?
The asset "logo.png" is not present in the asset pipeline.
Already try restart rails, rai...
Trusteeship asked 3/9, 2017 at 6:1
1 Next >
© 2022 - 2025 — McMap. All rights reserved.