Authentication basics with Ruby on Rails

Sdílet
Vložit
  • čas přidán 10. 08. 2021
  • In this episode, you'll see how to implement a simple email and password authentication system from scratch. We'll talk about how auth works, but in practice, you should use a gem like devise or another well tested, (ideally open source) tool for authentication. This is only to see how some of the pieces of authentication work.
    To see how to install Devise, checkout this other video: • Devise authentication ... .
    Code for the episode: github.com/cjavdev/blog-demo
    #rails #rubyonrails
  • Jak na to + styl

Komentáře • 34

  • @korayberk54
    @korayberk54 Před rokem +8

    I don't know if anyone has ever told you this, but you are really a great teacher and it is so important to have people arround the world like yourself. Keep doing what you are love and know that you are definitely good at it.

    • @cjav_dev
      @cjav_dev  Před rokem

      Thanks so much for the positivity! Love it.

  • @dencam
    @dencam Před rokem

    These tutorials have been very helpful to me as a beginner in Ruby.
    Thank you CJA

  • @wolfebane
    @wolfebane Před rokem

    Thank you so much for your help. I'm a rails novice working on a project and you broke this all down exceedingly well. Subscribed for sure.

  • @TadesseDev
    @TadesseDev Před rokem

    I love how you take it step by step. Big fan brother ❤❤

  • @kartikkk4583
    @kartikkk4583 Před rokem

    Oh man I am in love with you, the way you teach , all doubts cleared , great work man keep it up

  • @qe8445
    @qe8445 Před 2 lety +4

    I really appreciate the work you put into these videos, I hope you get a lot of subs.

    • @cjav_dev
      @cjav_dev  Před 2 lety

      Thanks for the kind words!

  • @morrismenanya9059
    @morrismenanya9059 Před rokem +1

    I had to pause the video halfway to say this is the most helpful and informative video I’ve really come across. You’re freaking awesome

    • @cjav_dev
      @cjav_dev  Před rokem +1

      Thanks so much for the kind words, Morris!

  • @promverstat
    @promverstat Před rokem

    very detailed and simple, enjoyed

  • @muhammadaamirkhan9185
    @muhammadaamirkhan9185 Před 10 měsíci

    Thanks that was a great video.

  • @rishikeshpatil9941
    @rishikeshpatil9941 Před rokem

    That's what I'm searching for from last week. Thank You man!! Just want to suggest you that please explain logout feature by destroying the session & how to expire cookies automatically after certain time.

  • @andrewkontoh6060
    @andrewkontoh6060 Před 2 lety +1

    Thanks alot

  • @SlainR2
    @SlainR2 Před 2 lety +1

    wow, impressive vim skills

  • @Jeffrey7P
    @Jeffrey7P Před 2 lety

    Great Vid! Is there a Github repo for this? Thanks in advance!

  • @kevin9458
    @kevin9458 Před rokem

    Nice video, what is your terminal theme?

  • @kartikkk4583
    @kartikkk4583 Před rokem

    I have a doubt how can we make it so that it checks for password only when we are creating a user and not when updating (i mean it will give options to update all the fields but if i dont update it it should remain same as previous )

  • @karlaeda902
    @karlaeda902 Před 2 lety

    Hi! Could you please tell what terminal theme you're using in the video?)

    • @cjav_dev
      @cjav_dev  Před 2 lety

      I use OneDark, but have tweaked it a little

  • @sinchannobita210
    @sinchannobita210 Před 2 lety

    I have a doubt to ask,
    How and when does the def password=(raw) setter method gets called automatically?
    Btw it's a great video .

    • @cjav_dev
      @cjav_dev  Před 2 lety

      Ah yes. This isnt obvious. It’s called when the params are passed from the controller.

  • @JayJay-ki4mi
    @JayJay-ki4mi Před rokem

    Could you tell me how you're switching to different files so quickly in vim. I use the telescope plugin, but whatever you're using looks far simpler.

    • @cjav_dev
      @cjav_dev  Před rokem

      I’m using a plug-in called fzf for the fuzzy finder and nerdtree for the navigation thing.

    • @JayJay-ki4mi
      @JayJay-ki4mi Před rokem

      @@cjav_dev ty :)

  • @EnjoytheMents
    @EnjoytheMents Před 2 lety +1

    Can u do a video about token based api consuming? Where you need to post to a url to get an bearer token and then connect with the token and auto refresh it?….

    • @cjav_dev
      @cjav_dev  Před 2 lety +1

      Yeah totally. Do you have an API in mind that works like this?

  • @augustonunesfarias4062

    hi cj, got a problem in the application controler and application html
    so my issue is : Couldn't find User without an ID
    that is happening why cookie of user_id arent showing on browser. Do u know how to fix that?
    18:32

    • @cjav_dev
      @cjav_dev  Před 2 lety

      Is the ID being saved as you expect? One way to test would be to print out the cookie and double check that it’s set as expected

    • @augustonunesfarias4062
      @augustonunesfarias4062 Před 2 lety

      @@cjav_dev actually I found another issue, devise apparently arent let me sign in

    • @augustonunesfarias4062
      @augustonunesfarias4062 Před 2 lety

      @@cjav_dev that explain why arent generating a id

  • @cosenocsibb8144
    @cosenocsibb8144 Před 2 lety

    Where is my comment, dude? It's sad that you've deleted my comment thanking you for the video.