Sprockets :: Helpers :: RailsHelper :: AssetPaths :: AssetNotPrecompiledError in the application using the engine, nginx, passenger

I have an application that uses the engine (included Gemfile gem my_engine, path => '../my_engine' ). It works great with rails server. I decided to transfer it to nginx with the passenger, but I get an error message.

Asterisks :: Helpers :: RailsHelper :: AssetPaths :: AssetNotPrecompiledError

auth_engine.css isn't precompiled Extracted source (around line #1): 1: <%= stylesheet_link_tag "auth_engine" %> 2: 3: <div class="form"> 4: <% flash.each do |key, value| %> 

auth_engine.css is located in my_engine / app / assets / stylesheets

How to fix it?

+6
source share
1 answer

It looks like you are simply snapping to this stylesheet separately, and not just directing the rails in application.css. In this case, you should simply transfer it to the public / assets / stylesheets folder in order to use it without compiling it.

+1
source

Source: https://habr.com/ru/post/908369/


All Articles