Build a Blog with Rails Part 10: Authentication with Devise

Поділитися
Вставка
  • Опубліковано 5 лис 2024

КОМЕНТАРІ • 20

  • @EnjoytheMents
    @EnjoytheMents Рік тому +20

    chris pls increase the font size next time it is really hard to read and follow

  • @jeffersonaraujo5444
    @jeffersonaraujo5444 2 місяці тому +1

    Your videos are really helpful Chris! Thank you

  • @julioarruda8182
    @julioarruda8182 Рік тому +1

    As always, thank you very much.

  • @LibertarianSeeker
    @LibertarianSeeker Рік тому +2

    Thanks a lot! Great content!

  • @vandrehesmeraldo9961
    @vandrehesmeraldo9961 4 місяці тому

    Hello coach, thank you very much for your dedication, can I ask you a question? Wouldn't it be safer to use JWT instead of using cookies?

    • @GorailsTV
      @GorailsTV  4 місяці тому +5

      Cookies are safer than JWT.

  • @GabrielMartinez-ez9ue
    @GabrielMartinez-ez9ue 10 місяців тому

    Would you recommend having a look first at the rails 6 course that you have? As I see you implemented manually your built auth not using devise

    • @GorailsTV
      @GorailsTV  10 місяців тому +2

      We recommend Devise for actual use and building auth from scratch at least once to understand how Devise works.

  • @DCSmokeFree
    @DCSmokeFree 7 місяців тому

    I am getting this error, "An error has occurred, this and all later migrations canceled:
    SQLite3::SQLException: no such table: users". Not sure what to do?
    I think i followed an old video of yours in rails 6 where we built the authentication manually. But now I had the users table, so I couldn't migrate the devise database. So then I tried to delete the other data base: rails db:drop. and now I get the above error and can't find any stack overflow guides to help.

  • @DanielJacksonNor
    @DanielJacksonNor Рік тому

    Fantastic content, as always.
    Do you have videos for alternatives to Devise?

    • @wlaidkabou
      @wlaidkabou Рік тому

      why do you think you need alternatives to Devise, what devise couldn't provide?

  • @JorgeGomez-g1f
    @JorgeGomez-g1f Рік тому +1

    I have a question, does there need to be a relationship from the blog to the user for a user to edit their post, or can the ID created by Devise be added to the blog table to filter it?
    If there isn't a rule that ensures only I can edit my posts, anyone else could potentially edit them

  • @kelele7173
    @kelele7173 Рік тому

    masterpiece

  • @Abhijeet-x4k
    @Abhijeet-x4k Рік тому

    I just don't understand how we are able to access user_signed_in? method so easily ?
    There must be something calling that method right ?

    • @wlaidkabou
      @wlaidkabou Рік тому +1

      Devise gem handles that for you. without devise you can't check if user signedin or not.

    • @wlaidkabou
      @wlaidkabou Рік тому

      that's one of the devise gem power, for sure devise Is the best gem ever

  • @kev_G
    @kev_G Рік тому

    Why does the logout button need to be a button? I tried making it a link but got an error [No route matches [GET] "/users/sign_out"]

    • @GorailsTV
      @GorailsTV  Рік тому +1

      Because it is a DELETE request and browsers use forms for that. Links only make GET requests.

    • @kev_G
      @kev_G Рік тому +2

      @@GorailsTV ahh ok that makes sense. Thanks!!