I am using rack mini profiler in my Rails application. In addition, I am using Rails Admin as my admin tool.
I am receiving the following message when looking at the dashboard:
Model 'Mini-profiler-resources' could not be found
Any clue on how to fix this?
I run into the same problem. My solution was tested with rails_admin (0.6.1)
and cancan (1.6.10)
.
mini-profiler
config contains field called skip_paths
. The solution is to set this field in the initializer.
config/initializers/mini_profiler.rb
./admin
should be ignored:
Rack::MiniProfiler.config.skip_paths ||= []
Rack::MiniProfiler.config.skip_paths << '/admin'