Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A administrate
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 96
    • Issues 96
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 32
    • Merge requests 32
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • thoughtbot, inc.
  • administrate
  • Issues
  • #502
Closed
Open
Issue created Mar 06, 2016 by Administrator@rootContributor

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

Assignee
Assign to
Time tracking