Devise User Avatars With Active Storage & Setting A Default Avatar | Casual Ruby on Rails 6 Tutorial

Today we create default avatars for our devise users using active storage and I also show you how to just create Devise user avatars using active storage in ruby on rails 6. I'm working casually this time though, so you'll get to see me clean up more of my mistakes than you normally would. Hopefully, this lets you see that I'm human too!
Timestamps
_______________
0:00 Video Overview & Intro
1:05 Adding Devise & Creating Login Links
4:05: Adding Avatars to User Accounts
6:00 Adding File Upload For Avatars
8:20 First Default Photo Options
12:30 Default User Avatars On All Accounts
15:35 Video Summary & Outro
_______________
Photo by Chien Nguyen Minh on Unsplash
Follow me on social media:
linktr.ee/deanin
Join this channel to get access to perks:
kzread.info/dron/RQv.html...
If you liked this video, please consider subscribing: t.co/RZ4EwP0F2a
#Deanin #Rails6 #20in20

Пікірлер: 29

  • @rakeshjoshi3720
    @rakeshjoshi37202 жыл бұрын

    guys imagemagick variant is changing write =>avatar.variant(resize_to_fit: [100, 100]).processed , instead to resize 100*100 .

  • @marioskanellopoulos8780
    @marioskanellopoulos87803 жыл бұрын

    Thank you so much for this video Dean. I was struggling with my project for so long till I thought about a default profile and likely you had a video about it.

  • @BraisonsCrece
    @BraisonsCrece Жыл бұрын

    Thanks for share Deanin! 🥳 We really appreciate your work... I'm trying to tackle all new issues that I usually found on my code, and with your channel, I got much more power to do it! 💪💪💪😂 I'll see all of them, I promise 🙂👍

  • @Benjamin-Chavez
    @Benjamin-Chavez3 жыл бұрын

    You saved me so much time. Thank you l!! Subscribed!

  • @lucasribeiro530
    @lucasribeiro5303 жыл бұрын

    Brazilian here! "Divise" customization tutorials and even articles on the subject are very hard to find, believe me But you helped me to open the horizons for these 2 points that I want to put in my system! Which is about images and login with username Even though the automatic subtitle translator didn't help, it was easy to understand because I already know the language ... It would help in my English if you tried to speak less slang, but I know that this request is irrelevant and yet it is easy to understand! Thanks!

  • @vietnguyenc6612
    @vietnguyenc66123 жыл бұрын

    That is great man thank you. That helps a lot

  • @aulbourn
    @aulbourn3 жыл бұрын

    thanks this helped out a lot!! cheers!!!

  • @ervintorra
    @ervintorra4 жыл бұрын

    Keep up the good work!

  • @Deanin

    @Deanin

    4 жыл бұрын

    Thank you! I'll do my best!

  • @pablomolinajarpa5219
    @pablomolinajarpa52193 жыл бұрын

    Thanks men very useful video!

  • @franitis
    @franitis Жыл бұрын

    Thanks so much!

  • @DeepakKumar-jy7wo
    @DeepakKumar-jy7wo4 жыл бұрын

    Again goood one :)

  • @prodbyindigo
    @prodbyindigo3 жыл бұрын

    this is sick

  • @danielneves4909
    @danielneves49096 ай бұрын

    Great!!!

  • @josegazmuri1428
    @josegazmuri14282 жыл бұрын

    hi, was wondering how you do those shortcuts like .field, haven't managed to add to my vscode settings

  • @Cartterr.
    @Cartterr.2 жыл бұрын

    Hi man! Thanks for the video, but sadly it throws me the error "ActiveStorage::FileNotFoundError" after I change the image from the edit page, I'm not sure what i'm doing wrong. the issues is specifically here: avatar.variant(resize_to_fit: [100, 100]).processed Can you give me a hand please?

  • @Adnankhan-dr7qn
    @Adnankhan-dr7qn3 жыл бұрын

    great

  • @sayedhasanalkhabaz82
    @sayedhasanalkhabaz823 жыл бұрын

    why you didn't use for example gravatar 🤔

  • @Telugudroid
    @Telugudroid4 жыл бұрын

    hi Deanin, i am making an web app ( very basic one ) but i have an problem , whenever I retrieve created_at column it outputs date with time and time zone, but I want only date that created at , can you help me with this, Thank you Deanin

  • @Deanin

    @Deanin

    4 жыл бұрын

    I think I covered it a bit in the blog project a little bit, but basically you can grab the created_at or updated_at and call strftime to customize them as much as you want. Ex: Which gives you: Thursday, April 30 2020 If you want anything else, you can use a tool like strftime.net/ to format your date as needed and then you just paste that string into the strftime. I'm not on my computer right now, so sorry for the formatting, but I hope this made sense? If not, let me know and I'll get back to you in a bit when I'm on my computer. ♥️

  • @Telugudroid

    @Telugudroid

    4 жыл бұрын

    @@Deanin Thanks deanin strftime works , thank you so much .....

  • @Deanin

    @Deanin

    4 жыл бұрын

    Yay! Happy to help!!

  • @ttovarischh
    @ttovarischh2 жыл бұрын

    Thank you so very much! You are very sweet by the way :)

  • @Deanin

    @Deanin

    2 жыл бұрын

    Glad it helped, I appreciate the kind words too haha

  • @alexandredomingosfilho5275
    @alexandredomingosfilho52752 жыл бұрын

    Hello Deanin, can you help me buddy? I'm getting this error when clicking logout button: undefined method `photo_thumbnail' for nil:NilClass Thanks in advance!

  • @Deanin

    @Deanin

    2 жыл бұрын

    I'm not entirely sure, but the error is saying that after you logout, somewhere you're trying to display the thumbnail photo. So if you're showing the image on the page, make sure it has a check for however the image is being displayed.

  • @alexandredomingosfilho5275

    @alexandredomingosfilho5275

    2 жыл бұрын

    @Deanin Thanks buddy. After putting this conditional in my view, the problem was solved. Thanks for your videos, they help me a lot!!!

  • @AprendeTasacionInmobiliaria
    @AprendeTasacionInmobiliaria3 жыл бұрын

    Hi, I finished all the steps but for some reason when I try to update a new avatar, it only stays the defaul profile photo.

  • @AprendeTasacionInmobiliaria

    @AprendeTasacionInmobiliaria

    3 жыл бұрын

    Fixed it! I had only update in the sanitizer, instead of account_update