I am trying to use Administrate to create a customizable/flexible admin dashboard for a web app I am working on. I have followed the instructions on https://github.com/thoughtbot/administrate
I keep getting this recurring error:
`block in class_name': undefined method `camelize' for nil:NilClass (NoMethodError)
even though I create a Admin model (as suggested by previous posts and questions). The steps I took:
Rails.application.routes.draw do
namespace :admin do
root to: "#index"
end
# welcome
root 'welcome#index'
get 'welcome/index'
end
Please let me know if there is anything else I can provide to help you answer the question!
Try deleting generated code from routes.rb:
namespace :admin do
root to: "#index"
end
and run again:
rails generate administrate:install
: