Questions tagged [rails-assets]
32 questions
                    
                    5
                    
            votes
                
                6 answers
            
        Rails 5 + Rails Assets + Fontawesome does not load fonts
On installing Fontawesome via rails-asset.org, and following the default instructions, the fonts don't load correctly and all I see is boxes, indicating, the url's being generated to load the font are incorrect.
        
        Shaunak
        
- 17,377
 - 5
 - 53
 - 84
 
                    4
                    
            votes
                
                3 answers
            
        Rails App Assets Not Being Loaded on Development Environment
Every time I spin up my Rails App locally, none of the CSS shows up. The debugger in the browser shows a get request for all of the asset files with fingerprinting, but they all fail since the files can't be found. Here is what one of those requests…
        
        Alex Peña
        
- 111
 - 1
 - 7
 
                    3
                    
            votes
                
                1 answer
            
        How do I use Rails Selectize in my Rails Project?
I'm getting the error
Selectize: Dependency MicroPlugin is missing
Make sure you either: (1) are using the "standalone" version of Selectize, or (2) require MicroPlugin before you load Selectize.
application.js:
//= require jquery
//= require…
        
        David Silva Smith
        
- 11,498
 - 11
 - 67
 - 91
 
                    2
                    
            votes
                
                1 answer
            
        Rails 5 problems with multiple manifest files
My Problem
In my Rails 5 application I have 2 layouts, for this reason I need to set up multiple manifest files.
What I have done
I did the following:
The two layouts have a user.html.erb and a main.html.erb html file, there I linked with the…
        
        Fabrizio Bertoglio
        
- 5,890
 - 4
 - 16
 - 57
 
                    2
                    
            votes
                
                1 answer
            
        Why would you be using config.assets.prefix in rails?
I'm trying to figure out, whether I should be using config.assets.prefixin my development environment or not.
When I'm using localhost, for development, are there any (dis-)advantages of doing this? When the local server itself isn't caching and is…
        
        Frederik Spang
        
- 3,379
 - 1
 - 25
 - 43
 
                    2
                    
            votes
                
                2 answers
            
        How to call react-modal from rails-assets.org in react-rails component
I have a rails app that uses react on the front end but I'm having trouble adding other react modules to my components. I am using react-rails for incorporating react into my rails app. I would like to add react-modal to a component. I've used…
        
        Stephen Call
        
- 67
 - 5
 
                    2
                    
            votes
                
                1 answer
            
        Rails - Rails.root.join misbehaving after deployment
I have, in my app/assets directory, the directories javascripts and stylesheets, as any normal Rails app.
I wanted, however, to have a plugins directory as…
        
        Aleksandrus
        
- 1,589
 - 2
 - 19
 - 31
 
                    2
                    
            votes
                
                0 answers
            
        Adding scss files to rails-assets
I'm creating a bower file, which I'm then adding at https://rails-assets.org/.
I can pull the file in fine, however I can't reference the scss file. The css file gets imported fine, however becomes useless because it merely contains…
        
        Rich
        
- 5,603
 - 9
 - 39
 - 61
 
                    1
                    
            vote
                
                1 answer
            
        Could not verify the SSL certificate error when running bundle install in ruby on rails app
I have a ruby on rails app that is throwing an error when I try to run bundle install. The error is the following:
bundle stdout: Could not verify the SSL certificate for https://rails-assets.org/ There is a chance you are experiencing a…
        
        juansneak
        
- 37
 - 2
 - 6
 
                    1
                    
            vote
                
                0 answers
            
        HowTo: Apply postcss(autoprefixer) to rails assets before compilation
The question title is trying to be descriptive, but I feel I have to explain a bit further:
My goal is to use postcss (especially postcss-preset-env incl. autoprefixer) in my rails 5.2 app. I managed to setup webpack and get my prefixes, but with…
        
        randmin
        
- 818
 - 8
 - 16
 
                    1
                    
            vote
                
                0 answers
            
        Summernote Icons Missing in Rails Production
I have implemented Summernote in my rails app. Everything works fine in development and the Summernote icons are displayed properly. However, when I deployed it to production, those icons are missing. I have tried to run
rake…
        
        John Mayer
        
- 13
 - 5
 
                    1
                    
            vote
                
                1 answer
            
        Rails 5 assets:precompile hangs
I am running Rails 5 with Ember & ember-cli-rails gem. I don't have much in the Rails assets folder because I have a separate frontend folder and ember-cli-rails helps me mount my Ember app to a Rails route.
I deploy to an AWS instance and whenever…
        
        Sticky
        
- 3,671
 - 5
 - 34
 - 58
 
                    1
                    
            vote
                
                0 answers
            
        Rails 4.2 upgrade - No route matches [GET] "/assets/my_custom_scss_files.self.css"
I just upgraded to rails 4.2, and I'm finding that some asset errors are popping up (only in production).
These involve custom CSS files and javascript files that I had created and normal ones. 
ActionController::RoutingError (No route matches [GET]…
        
        Jono
        
- 3,393
 - 6
 - 33
 - 48
 
                    0
                    
            votes
                
                0 answers
            
        Could not find gem
I migrated from rail 4 to rails 5 but these gems are not working. Can anyone tell me how to solve it? When I do bundle install and check which gems are installed it says it has such gems. I'm using:
ruby 2.5
bundler: 2.3.25
rails 5.2
gemfile:…
        
    
                    0
                    
            votes
                
                0 answers
            
        How to serve gzip compressed file in rails 7.0.x and ruby 3.1.2?
I am using webpack plugin "compression-webpack-plugin" which created .js.gz files for app-bundle and vendor-bundle
How can I use gz files in asset precompile so my application.js size can be decreased?
The current Size is 10MB gz file size is of 2…
        
        Kunal Vashist
        
- 2,380
 - 6
 - 30
 - 59