Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails_admin do not show all included models

I have Rails app with some models, frontend and administration with rails_admin. I have these rails_admin settings:

# Config/initializers/rails_admin.rb
RailsAdmin.config do |config|
  ...
  config.included_models = %w[ User Page Event Link Slide Main Partner ]
  ...
end

But it's not working, it show only Events, Links, Pages. I do not know where I did mistake.

like image 271
quatermain Avatar asked Dec 06 '25 17:12

quatermain


1 Answers

Are you using CanCan with rails admin? Maybe you haven't set the ability model to make them manageable.

Or maybe you haven't restarted your server.

like image 100
Arthur Avatar answered Dec 08 '25 07:12

Arthur



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!