Undefined method 'camelize' for nil:NilClass
Created by: coisnepe
Hey,
I tried adding administrate to my project but I kept getting this error. Just to make sure it wasn't because of the project, I started a fresh new app, only added administrate to the Gemfile, bundled and ran rails generate administrate:install
, to no avail: keep getting the same error.
rails generate administrate:install
Running via Spring preloader in process 30057
route namespace :admin do
root to: "#index"
end
create app/controllers/admin/application_controller.rb
create app/dashboards/_dashboard.rb
/Users/.../.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/railties-4.2.5.2/lib/rails/generators/named_base.rb:102:in `block in class_name': undefined method `camelize' for nil:NilClass (NoMethodError)
from /Users/.../.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/railties-4.2.5.2/lib/rails/generators/named_base.rb:102:in `map!'
from /Users/.../.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/railties-4.2.5.2/lib/rails/generators/named_base.rb:102:in `class_name'
from (erb):3:in `template'
Edit: I had installed administrate in another project earlier that day without running into any issues. Not sure what happened in between... I tried gem uninstall administrate
, created a new app, added gem "administrate", "~> 0.1.4"
, bundled etc, but no luck...
Edit2: Tried bundling with Ruby 2.3 / 2.2.4 / 2.2.3 and Rails 4.2.5 / 4.2.5.2 (every possible combination) , still no luck