-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rails_admin js/css no longer precompile in 0.0.4 #1192
Comments
Same issue here |
Maybe related to 152dc34 |
Same here with 0.0.4
|
#1046 This works for me. |
What exactly worked for you, @qqshfox ? |
I get Here's my rake stack trace and application.rb file. |
@qqshfox 's solution worked great. Thanks! |
Edited the documentation for troubleshooting: https://github.com/sferik/rails_admin/wiki/Troubleshoot/_compare/4628de8a65028be16d2e6d9834ec28a55eca4e0c...863f5656f25ebac5652f903f18240f251d0b6fff Although, if this problem is universal (that is everyone would absolutely, without a doubt, run into this problem), I think having it buried in the Troubleshoot wiki page is not the best way to go about this. Probably having it up as a note when people run
instead, much like how Devise does their own post-install notes? |
Added that, @rystraum, but didn't help:
|
…h initialize_on_precompile = true and false. Refs #1192
I've made slight modification to changes made by #1135. @parkr |
What I don't understand is whether this change was intentional. Are we supposed to add these to config.assets.precompile now? That doesn't seem right to me. |
@chewi: That's why I suggested having it up as a note when you first run rails g rails_admin:install, if it was indeed intentional. In general, I don't mind, as long as it's documented anywhere. |
@mshibuya it's working. This issue can be closed |
I am using 0.1.x version and I still need to follow those steps of remove the catch all, and add the += |
I was using: Rails.application.config.assets.precompile << /(^[^_\/]|\/[^_])[^\/]*$/ How should I handle this now? Do I need to specify all files manually? that doesn't seem right to me. UPD. Fixed this way: Rails.application.config.assets.precompile << /(?:^(?!rails_admin)(?:[^_\/]|\/[^_])+)[^\/]*$/
Rails.application.config.assets.precompile += %w[rails_admin/rails_admin.css rails_admin/rails_admin.js] |
Just started a new rails project with 0.0.4 and production fails because it can't find pre-compiled rails_admin.js/css.
I downgraded my rails_admin to 0.0.3 and ran
and it precompiled rails_admin js/css.
Images are found and are precompiled in both cases, so it's just the CSS and JS that aren't precompiled.
The text was updated successfully, but these errors were encountered: