Rails 6 for Beginners Part 11: Creating the User model

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

I love seeing an approach not using Devise, not that Devise is bad, but this is such a useful way to learn the inner workings.

andrewackerman
Автор

So I'm a bit confused in these videos about which things are built-in to rails and which things we're building from scratch. For example, has_secure_password. How does it know to connect to the password_digest column in our database? It seems like it has to be an automatic thing done by Rails behind the scenes but it's not really explained

ohmegatech
Автор

Hi, have some error with the ruby console and and I do not know what to do.
The error:
`require': cannot load such file -- rdoc (LoadError)

juanmcalvino
Автор

When I enter rails c it's not showing me irb(main) instead it display switch to inspect mode how can I resolve this issue?

FuntoLearnFact
Автор

Hii. .. After User.create command why am I getting error like unknown attribute password for User

swetadas
Автор

Hello chris, i think bcrypt is not working properly for me since when i try to create the user, activemodel give me an unknown attribute error(i have to pass password as password_digest to make if pass, but then also the confirmation throw the same error, i also checked with your source code, but i don't seem to find the problem

sgarre
Автор

question, is it imperative to name the table attribute password_digest if we use the has_secure_password method in the model?

loulamperouge
Автор

Also, where do I get one of those shirts?

andrewackerman
Автор

Hi. Why do I get nil as response while asking for User.first ?

thomasorigel
Автор

I am not able to create new user.
>User.all results in 
| Object doesn't support #inspect

Update: Solved by entering following command
> rails db.migrate

sj
Автор

Man, great series, thank you for doing it.
One thing tho: When you use command line, you always type at the bottom and youtube video controls (buttons, time, e.t.c) are overlaying with exactly that, it's a little disturbing.
Keep up the good work

TemuriTofuria-a
Автор

yo u know i needed dat user authentication u feelme

MenAmongTheRuins
Автор

Please don't forget to migrate your db!

stuartmcculloch