Skip to content

Inflection bug in Rails 7.1.2: Don't know how to build task 'nopassword_engine:install:migrations'  #2

Description

@mlins

Steps to reproduce:

rails -v
Rails 7.1.2
ruby -v
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-darwin22]
rails new nopassword_rails

I added nopassword (latest main) to my Gemfile like this, because I was looking to contribute a "Sign in with Apple" controller:

gem "nopassword", path: "../nopassword"

Then I ran the nopassword install:

bin/rails generate nopassword:install

And got this output:

      create  app/controllers/email_authentications_controller.rb
      create  app/views/email_authentication_mailer
      create  app/views/email_authentication_mailer/notification_email.html.erb
      create  app/views/email_authentication_mailer/notification_email.html.txt
      create  app/views/email_authentications
      create  app/views/email_authentications/edit.html.erb
      create  app/views/email_authentications/new.html.erb
       route  resource :email_authentication
        rake  nopassword_engine:install:migrations
rake aborted!
Don't know how to build task 'nopassword_engine:install:migrations' (See the list of available tasks with `rake --tasks`)
Did you mean?  no_password_engine:install:migrations

When I run:

rake -T

I get (notice the extra underscore):

<snip>
rake no_password_engine:install:migrations  # Copy migrations from no_password_engine to application
<snip>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions