railsadminteam / rails_admin

RailsAdmin is a Rails engine that provides an easy-to-use interface for managing your data
MIT License
7.88k stars 2.25k forks source link

doesn't work with rails_admin_theme anymore #3540

Closed arifikhsan closed 2 years ago

arifikhsan commented 2 years ago

Describe the bug I'm using rails 7. When installing rails_admin version 3 with rails_admin_theme, the theme doesn't work anymore. I cannot revert back to version 2 because it doesn't support rails 7.

Screen Shot 2022-07-10 at 12 18 02

Reproduction steps

  1. make new rails project
  2. install rails_admin
  3. install rails_admin_theme and configure rollincode theme
  4. see the dashboard with rollincode theme

Expected behavior I would expect to see something like this

Screen Shot 2022-07-10 at 12 11 23

but instead this is what I got

Screen Shot 2022-07-10 at 12 12 05

code is in here: https://github.com/arifikhsan/rails_admin_hello_again

Additional context

Add any other context about the problem here.

codealchemy commented 2 years ago

There are changes to themes in 3.0.0 that are likely breaking for themes (specifically, the update to Bootstrap 5), any downstream projects (ex. https://github.com/rollincode/rails_admin_theme) will need to update (though it looks like that project is now archived, not sure if there's a fork or alternative that would be viable)

In the meantime, you can remove the rails_admin_theme gem and stick with the default theme (and possibly do your own overrides), or downgrade rails/rails_admin to a version supported by rails_admin_theme.

Alternatively, you can downgrade your rails version if you'd like to use rails_admin 2.x.x with rails_admin_theme