Rails 6 for Beginners Part 15: Login with Session Cookies

Rails 6 for Beginners Part 15: Login with Session Cookies

GoRails

3 года назад

25,163 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

KartiK KK
KartiK KK - 21.02.2023 13:02

it gives rack cors error:
allow origin cannnot be wildcard * can u fix it?

Ответить
Dylan
Dylan - 07.12.2022 00:55

You are a saint

Ответить
Muhammad Attaullah Bhatti
Muhammad Attaullah Bhatti - 14.11.2022 23:17

what a marvelous explanation that is ....

Ответить
SharpWitted
SharpWitted - 18.08.2022 14:04

This video series is really well explained, as a total beginner, i'm understanding everything, it is clear and very nicely brought. Thank you for this !

Ответить
ibrahim jamil
ibrahim jamil - 09.08.2022 16:42

whatever you are i mean you are amazing explained topic really well

Ответить
Speedy Films
Speedy Films - 03.08.2022 19:21

but as we know the user id is a simple int so a hacker can easily change it and have access to all users

Ответить
Draven Doom
Draven Doom - 15.06.2022 02:41

Anyone getting the issue that passwords cannot be blank?

Ответить
NEAD LEAD
NEAD LEAD - 03.05.2022 04:28

wonderful explanation ,I have one question in the case where we delete the user from our database we have to delete the session[:user_id] because myb in the future we create a user that will have the same id so when we will use find this will bring up the other user from db wish is not a good situation ,is this right?

Ответить
Amir hossein Majidi
Amir hossein Majidi - 28.02.2022 11:05

my application won't show the email after redirecting to root.

Ответить
Farzam
Farzam - 16.01.2022 01:56

Dude this is a great video. Quick question though, how can I differentiate between login and register post methods?

Ответить
Jaehun Shin
Jaehun Shin - 02.10.2021 06:41

#@user = User.find(session[:user_id])
# this is not working as expected
@user = User.find_by(id: session[:user_id])

Ответить
Shiv
Shiv - 16.09.2021 00:11

Thanks

Ответить
Michael Reardon
Michael Reardon - 17.06.2021 21:50

Really clear tutorials. Quick question, I have something I want to build for just me and some employees. Should I handle auth. on my own as you've described, or use Devise? The app is going to be really basic. Everything online says always use an existing library but feels overkill in my use-case?

Ответить
Marigi
Marigi - 06.04.2021 00:36

Cant get my application to display the code under the if statement. user params has the email and its being inserted into the db. however i can't get it to display the email id.

Ответить
Sarvar Khalimov
Sarvar Khalimov - 05.04.2021 19:57

Straight forward explanation of Sessions in Rails with examples.
Vastly helpfull. Thanks for the tutorial.

Ответить
Michael Vogl
Michael Vogl - 27.01.2021 22:25

To remember a Session I use cookies.signed.permanent or do I use such a Cookie to restore a Session (set Session)

Ответить