Комментарии:
it gives rack cors error:
allow origin cannnot be wildcard * can u fix it?
You are a saint
Ответитьwhat a marvelous explanation that is ....
Ответить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 !
Ответитьwhatever you are i mean you are amazing explained topic really well
Ответитьbut as we know the user id is a simple int so a hacker can easily change it and have access to all users
ОтветитьAnyone getting the issue that passwords cannot be blank?
Ответить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?
Ответитьmy application won't show the email after redirecting to root.
ОтветитьDude this is a great video. Quick question though, how can I differentiate between login and register post methods?
Ответить#@user = User.find(session[:user_id])
# this is not working as expected
@user = User.find_by(id: session[:user_id])
Thanks
Ответить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?
Ответить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.
ОтветитьStraight forward explanation of Sessions in Rails with examples.
Vastly helpfull. Thanks for the tutorial.
To remember a Session I use cookies.signed.permanent or do I use such a Cookie to restore a Session (set Session)
Ответить