Installing ActiveAdmin:4.0.0.beta15 with Rails 8.0.2 #8750
-
Hello ! Hello, I tried to install Active Admin on my Rails 8.0.2 application. I've taken the ActiveAdmin:4.0.0.beta15 version, but I'm encountering some difficulties that I can't resolve. The steps I've taken:
Run command:
then Generate ActiveAdmin views Add the Tailwind line to the _html_head.html.erb:
Launch my server with the bin/dev command My procFile.dev looks like this:
My problem is that the AdminUser page has a small design problem and I'm also having a problem with the menu that opens when I press it but doesn't close. If I also press the Dark mode button nothing happens, I stay in Dark mode. I can't see any errors in my JS console or in my bin/dev. And I can see all the assets loading in source. I'd also like to keep this option of separating ActiveAdmin from my main Rails application. Can you help me? Thank you very much |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hello, at the moment ActiveAdmin uses tailwind 3
This installs tailwind 4 Please lock to v3: https://github.com/rails/tailwindcss-rails?tab=readme-ov-file#choosing-a-specific-version-of-tailwindcss Can you please check? Please then refer to discussion #8538 |
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply, What I did:
and install tailwind Then install in package.json of activeadmin and tailwind
I then did a : and everything works! Thanks again for your help |
Beta Was this translation helpful? Give feedback.
Hello,
at the moment ActiveAdmin uses tailwind 3
This installs tailwind 4
Please lock to v3: https://github.com/rails/tailwindcss-rails?tab=readme-ov-file#choosing-a-specific-version-of-tailwindcss
Can you please check?
Please then refer to discussion #8538