Code Monkey home page Code Monkey logo

Comments (3)

philtr avatar philtr commented on August 25, 2024 1

Yeah, that's essentially what I did to fix it. I'm OK with that workaround if you want to keep it that way.

from challah.

jdtornow avatar jdtornow commented on August 25, 2024

Hey @philtr!

I'm not even sure that class is in use anymore within the rest of the code, if it is I can't find it.

We could update the class to accept the params object in here, but I think the better way to do that would be within the controller (so by the time it gets into the Signup object everything is already in a hash.)

Does something like this work in your controller where you're calling signup?

signup  = Challah::Signup.new(params.permit!.to_h)
signup.save

from challah.

jdtornow avatar jdtornow commented on August 25, 2024

Great. I'm happy to add something in if you think it makes sense :)

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.