Replies: 13 comments 20 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Thanks for early testing against 8.1 I will start checking rails-edge compatibility as a low priority task after we merge #8500 (which is blocked upstream) |
Beta Was this translation helpful? Give feedback.
-
This also reproduced in rails 8.0. Steps:
Am I missing some command or gem? Or maybe options to create blank rails app? |
Beta Was this translation helpful? Give feedback.
-
So it appears to be a problem with Propshaft, but as far as I can see the default javascript for Rails 8 is importmap ActiveAdmin uses importmap by default, the generator has this line: activeadmin/tasks/test_application.rb Line 51 in 25a6b36 Reference to propshaft: #8298 (comment) PRs and investigations are welcomed edit 1I can see propshaft in the Gemfile of the test app
|
Beta Was this translation helpful? Give feedback.
-
Sorry, probably it is Ref: https://github.com/activeadmin/activeadmin/blob/master/UPGRADING.md#from-v3-to-v4-beta Please add this gem and try again. This is mentioned in the upgrade guide but not in the first install guide, because I guess it is "optional" and depends on the approach used to load Active Admin |
Beta Was this translation helpful? Give feedback.
-
Thank you, @tagliala! I'm finally done with starting application with builded styles. Following discussion header, this also works on rails 8.1.0.alpha: #8538 (reply in thread) Important note: node version must be lower than 23. Also, it would be great, if we have some way to install and make things work without node/yarn. |
Beta Was this translation helpful? Give feedback.
-
If there is an answer for 8.1 alpha, please mark the answer as answer and close this discussion, thanks! |
Beta Was this translation helpful? Give feedback.
-
Hello, suggestions on this PR are welcomed: #8545 |
Beta Was this translation helpful? Give feedback.
-
I managed to have it displayed correctly but I'm stuck with the JS.
I'm not using Customization
I need to keep all of them, even if I'm only updating @tagliala maybe you have an idea about this behavior?
<%= stylesheet_link_tag "active_admin", "data-turbo-track": "reload" %>
<meta name="viewport" content="width=device-width,initial-scale=1»
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<% # On page load or when changing themes, best to add inline in `head` to avoid FOUC %>
<%= javascript_tag nonce: true do %>
if (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
document.documentElement.classList.add('dark')
} else {
document.documentElement.classList.remove('dark')
}
<% end %>
<%= javascript_include_tag "active_admin", "data-turbo-track": "reload" %>
Aim is to keep
RunI first need to run `` to it generates
JS ProblemWith about I've created
I got this final error:
This is coming from this DOM
|
Beta Was this translation helpful? Give feedback.
-
hi everyone, this gem helped me https://github.com/jaynetics/activeadmin_assets/ |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Hello, I've noticed that my instructions above don't work anymore. This is mostly because TailwindCSS v4. Since ActiveAdmin uses v3, it is a mess to make it work Please always remember that there is not a single way to configure assets, this is just one of the possible approaches. Do whatever is the best for your project The following should work:
And then run
|
Beta Was this translation helpful? Give feedback.
-
My running environment gem "rails", "~> 8.0.2" |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
💥
unsure how to fix, but following the guides (https://activeadmin.info/0-installation.html) seems broken.
Beta Was this translation helpful? Give feedback.
All reactions