Devise Login With Username And Email + How To Create Prototype Usernames | Ruby On Rails 6 Tutorial

Поделиться
HTML-код
  • Опубликовано: 26 янв 2025

Комментарии • 28

  • @noone-xs8om
    @noone-xs8om 2 года назад +1

    Excellent tutorial that works even two years later. Thank you, Deanin!

  • @DevBishwasBh
    @DevBishwasBh 2 года назад +1

    Your voice is super awesome bro. It's so sassy, smooth and manly.

  • @msharialjuhani1891
    @msharialjuhani1891 4 года назад +1

    thank you, dude. you helped me with my graduation project
    actually, all your tutorials are amazing :)

  • @Deanin
    @Deanin  4 года назад +1

    I've integrated the new RUclips timestamp system for this video, which will allow you to scrub the video for sections you'd like to see. Let me know what you think!
    Catching up on my to do list with this one haha. Thought I'd cover logging in with usernames today in case it's something someone needs! Hope this video helps!

  • @agustinpalmam2923
    @agustinpalmam2923 Год назад +1

    Great video friend !😃

  • @crickey.
    @crickey. 4 года назад

    Great video, great explanation and great production value. Keep em coming brother

  • @friendofcomputer
    @friendofcomputer 4 года назад +2

    Wow, amazing tutorial. You have helped me a lot. Thank you!😌

    • @Deanin
      @Deanin  4 года назад

      Glad it helped!

  • @ahmadhassan3131
    @ahmadhassan3131 2 года назад +1

    Your are amazing!

  • @alejandroalcazar7346
    @alejandroalcazar7346 4 года назад +1

    Really thanks for this info! So helpfully.

    • @Deanin
      @Deanin  4 года назад

      Glad it helped! Always makes me happy to hear that!

  • @nicobobb
    @nicobobb 4 года назад +2

    Excellent video! Do you use windows 10?
    Because when I wanted to install rails in windows it didn't work for me.
    Do you have a website where it explains the steps?
    If you make a video of it, it will be of great help to me.

    • @Deanin
      @Deanin  4 года назад +1

      Thank you!
      Yeah, I use Windows 10! Well, sort of. You can run a Microsoft supported subsystem for Linux on Windows now. I have a playlist that covers it which I'll link below. I also have a blog post on my website, my only blog post so far actually haha, which covers the WSL 2 setup as well, so I'll also link that if that helps.
      Blog post:
      deandehart.com/blog/wsl-2-setup-in-under-5-minutes-to-run-linux-on-windows-10/
      Windows Subsystem For Linux And Ruby On Rails 6 Setup: ruclips.net/p/PL3mtAHT_eReyLg4jBB8LqvJAPuAkDFJ_V

  • @JayZalowitz
    @JayZalowitz 3 года назад +1

    can you link to the guide lol.

  • @dum_travis8034
    @dum_travis8034 4 года назад +1

    Rails newbie here. Great video again! Just wondering what the point is of using Devise for users. I've followed some other youtube guides on making a basic application with rails and in those we just created a user record the old fashioned way with scaffold. I'm guessing the reason to use something like Devise is because my current way is super insecure? Thanks

    • @Deanin
      @Deanin  4 года назад +1

      Yeah the security is going to be one of the main benefits. I think at this point it's become such a staple to use Devise that for most people they just drop it in, run the commands, and forget about it.
      There's other options of course. If you're looking for a very expansive admin functionality, I'd suggest checking out something like the Active Admin gem for example.
      The nice thing about Devise is that because it's so prevalent, you'll often find it in other projects and instantly know how most of the user functionality will work.
      A great example of this is using the Spree gem for creating an ecommerce store. They actually use Devise in their engine, so when I first looked into Spree, Devise was one of the safe places I decided to start with lol.

    • @dum_travis8034
      @dum_travis8034 4 года назад +1

      @@Deanin awesome. thanks for the help! was considering taking a DIY approach since I'm making a pretty barebones app, but I should probably just set this up and forget about it

    • @Deanin
      @Deanin  4 года назад

      Yeah, if you're doing it for the functionality then probably just throw Devise in. If you're doing it to learn though, creating your own DIY user accounts might not be a bad idea haha.
      Happy to help!

    • @dum_travis8034
      @dum_travis8034 4 года назад

      @@Deanin one last thing. is it relatively easy to add Devise into my existing project when I already have my User model generated? Or would it be easier to just start from scratch?

    • @Deanin
      @Deanin  4 года назад

      ​@@dum_travis8034 It shouldn't be too hard to add Devise. If your user model already has, for example, an email + username + password, then you could run:
      rails g devise user
      which would create an
      add_devise_to_users
      migration. I just tried it with a user model that already had a username and password, and it seems to have worked alright? Inside of that migration, you might need to comment out the email part, but I'm not sure? But aside from that and maybe needing to change some forms around, it should work.
      If you do need to change the devise forms, you can run:
      rails g devise:views
      to generate the files inside of app/views/devise so that you could modify them.

  • @baseddepartment1306
    @baseddepartment1306 4 года назад +1

    Nice one!

    • @Deanin
      @Deanin  4 года назад

      Thank you! I appreciate it, and hope it helped! 🙂

  • @bradalza98
    @bradalza98 4 года назад

    Nice video, please increase the size of the code text, I wasn't able to see properly.

  • @countalucard1347
    @countalucard1347 4 года назад

    Hi, Can you share a tutorial using devise email confirmation via API?

  • @xaogao
    @xaogao 4 года назад

    Do you know telegram messanger? Can you create telegram bot(or discord, etc) with functions like upload file, redirect command , create order in shop use ruby?

  • @w1d3r75
    @w1d3r75 4 года назад +1

    Have you ever had any problem using Rails on windows?

    • @Deanin
      @Deanin  4 года назад +1

      Yeah, and they seem to be getting worse lately. I usually advise that if people are going to develop on Windows they use the Windows subsystem for Linux, which is what I use in these videos.

  • @syaifulm9239
    @syaifulm9239 4 года назад

    can't see all your code. to small