Code Monkey home page Code Monkey logo

Comments (4)

philtr avatar philtr commented on July 22, 2024

I don't think Users has ever had username.

Here is the username= method:
https://github.com/jdtornow/challah/blob/master/lib/challah/concerns/user/passwordable.rb#L43-L46

Then it writes that value to the Authorization record here:

set(uid: user.username, token: user.password, user_id: user.id, authorization: user.class.authorization_model)

What's the error you're getting?

from challah.

atomkirk avatar atomkirk commented on July 22, 2024
Populating seed data...
==========================================================================
  Creating a user
==========================================================================

Please answer the following questions to create your first admin user.

First name: Adam
Last name: Kirk
Email: [email protected]
Username: |[email protected]| atomkirk
Password:
Password again:
rake aborted!
NoMethodError: undefined method `username=' for #<User:0x007ffb2bc896b8>

from challah.

atomkirk avatar atomkirk commented on July 22, 2024

Oh, you know what? I created the User model before I started installing Challah, and it had a username. My bad.

from challah.

jdtornow avatar jdtornow commented on July 22, 2024

Thanks @philtr :)

from challah.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.