Comments (5)
That's because in your students table in the database you need a column called password_digest. Has_secure_password
automatically takes the password field from the form, and password_confirmation if you're setting the password, and generates the password_digest for you.
from nku.
On top of super jaime being correct again, you won't be able to call (student_params) as it is defined under private.
from nku.
Just for the record, I'm not seeing any issue with student_params
in your controller. Defining it as a private method is the right thing to do here because you are only calling it from within the controller.
from nku.
Thanks @mitchlloyd I had intended to leave it in a private class as I don't want it callable by anything else
from nku.
It seems I had everything in place aside from in the database itself. I ended up dumping the db and remaking it then migrating everything. I am now able to add users and log users in.
from nku.
Related Issues (20)
- ActiveRecord question HOT 2
- How can an administrator sign up? HOT 1
- Logout not being properly referenced HOT 1
- CSS / LESS not classes not being applied
- Adding upload action? HOT 3
- Creating an administrator HOT 3
- Question about to assignments ago, querying for assignments
- SASS Error HOT 5
- Rollback some commits HOT 5
- Question about STIs or polymorphic associations HOT 10
- Site won't collapse on mobile HOT 2
- I'm thinking about using devise HOT 4
- Who wants an invite to prelang? HOT 16
- Ruby Brigade tomorrow is anyone going?
- How do to safely use github? HOT 8
- Blank Pages HOT 5
- Can't Use Partial Dates HOT 4
- has_many :through => HOT 2
- validation errors HOT 4
- ActiveRecord::PendingMigrationError HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nku.