Skip to content
This repository was archived by the owner on Dec 12, 2021. It is now read-only.
This repository was archived by the owner on Dec 12, 2021. It is now read-only.

Errror creating Authentication Migration #166

Open
@jonahbron

Description

@jonahbron

When I try to run the authentication generator with Rails 4, I get this error:

     gemfile  bcrypt-ruby
     gemfile  mocha
      create  app/models/user.rb
      create  app/controllers/users_controller.rb
      create  app/controllers/sessions_controller.rb
      create  app/helpers/users_helper.rb
      create  app/helpers/sessions_helper.rb
      create  app/views/users/new.html.erb
      create  app/views/users/edit.html.erb
      create  app/views/users/_form.html.erb
      create  app/views/sessions/new.html.erb
      create  lib/controller_authentication.rb
       route  resources :users
       route  resources :sessions
       route  match 'login' => 'sessions#new', :as => :login
       route  match 'logout' => 'sessions#destroy', :as => :logout
       route  match 'signup' => 'users#new', :as => :signup
       route  match 'user/edit' => 'users#edit', :as => :edit_current_user
/home/jonah/.rvm/gems/ruby-2.0.0-p247@app/bundler/gems/nifty-generators-d305e9e7188a/lib/generators/nifty/authentication/authentication_generator.rb:59:in `create_migration': wrong number of arguments (3 for 0) (ArgumentError)
    from /home/jonah/.rvm/gems/ruby-2.0.0-p247@app/gems/railties-4.0.4/lib/rails/generators/migration.rb:65:in `migration_template'
    from /home/jonah/.rvm/gems/ruby-2.0.0-p247@app/bundler/gems/nifty-generators-d305e9e7188a/lib/generators/nifty/authentication/authentication_generator.rb:60:in `create_migration'
    from /home/jonah/.rvm/gems/ruby-2.0.0-p247@app/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
    from /home/jonah/.rvm/gems/ruby-2.0.0-p247@app/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
    from /home/jonah/.rvm/gems/ruby-2.0.0-p247@app/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'
    from /home/jonah/.rvm/gems/ruby-2.0.0-p247@app/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'
    from /home/jonah/.rvm/gems/ruby-2.0.0-p247@app/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'
    from /home/jonah/.rvm/gems/ruby-2.0.0-p247@app/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'
    from /home/jonah/.rvm/gems/ruby-2.0.0-p247@app/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'
    from /home/jonah/.rvm/gems/ruby-2.0.0-p247@app/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
    from /home/jonah/.rvm/gems/ruby-2.0.0-p247@app/gems/railties-4.0.4/lib/rails/generators.rb:156:in `invoke'
    from /home/jonah/.rvm/gems/ruby-2.0.0-p247@app/gems/railties-4.0.4/lib/rails/commands/generate.rb:11:in `<top (required)>'
    from /home/jonah/.rvm/gems/ruby-2.0.0-p247@app/gems/activesupport-4.0.4/lib/active_support/dependencies.rb:229:in `require'
    from /home/jonah/.rvm/gems/ruby-2.0.0-p247@app/gems/activesupport-4.0.4/lib/active_support/dependencies.rb:229:in `block in require'
    from /home/jonah/.rvm/gems/ruby-2.0.0-p247@app/gems/activesupport-4.0.4/lib/active_support/dependencies.rb:214:in `load_dependency'
    from /home/jonah/.rvm/gems/ruby-2.0.0-p247@app/gems/activesupport-4.0.4/lib/active_support/dependencies.rb:229:in `require'
    from /home/jonah/.rvm/gems/ruby-2.0.0-p247@app/gems/railties-4.0.4/lib/rails/commands.rb:48:in `<top (required)>'
    from bin/rails:4:in `require'
    from bin/rails:4:in `<main>'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions