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

  Рет қаралды 8,133

Deanin

Deanin

Күн бұрын

Пікірлер: 28
@lucasribeiro530
@lucasribeiro530 4 жыл бұрын
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!
@rakeshjoshi3720
@rakeshjoshi3720 3 жыл бұрын
guys imagemagick variant is changing write =>avatar.variant(resize_to_fit: [100, 100]).processed , instead to resize 100*100 .
@BraisonsCrece
@BraisonsCrece 2 жыл бұрын
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 🙂👍
@marioskanellopoulos8780
@marioskanellopoulos8780 4 жыл бұрын
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.
@ervintorra
@ervintorra 4 жыл бұрын
Keep up the good work!
@Deanin
@Deanin 4 жыл бұрын
Thank you! I'll do my best!
@vietnguyenc6612
@vietnguyenc6612 4 жыл бұрын
That is great man thank you. That helps a lot
@Benjamin-Chavez
@Benjamin-Chavez 4 жыл бұрын
You saved me so much time. Thank you l!! Subscribed!
@franitis
@franitis Жыл бұрын
Thanks so much!
@DeepakKumar-jy7wo
@DeepakKumar-jy7wo 4 жыл бұрын
Again goood one :)
@josegazmuri1428
@josegazmuri1428 3 жыл бұрын
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?
@danielneves4909
@danielneves4909 Жыл бұрын
Great!!!
@aulbourn
@aulbourn 4 жыл бұрын
thanks this helped out a lot!! cheers!!!
@shalkhabaz
@shalkhabaz 4 жыл бұрын
why you didn't use for example gravatar 🤔
@alexandredomingosfilho5275
@alexandredomingosfilho5275 2 жыл бұрын
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!!!
@prodbyindigo
@prodbyindigo 4 жыл бұрын
this is sick
@ttovarischh
@ttovarischh 3 жыл бұрын
Thank you so very much! You are very sweet by the way :)
@Deanin
@Deanin 3 жыл бұрын
Glad it helped, I appreciate the kind words too haha
@Telugudroid
@Telugudroid 4 жыл бұрын
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!!
@cyber-javier
@cyber-javier 4 жыл бұрын
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.
@cyber-javier
@cyber-javier 4 жыл бұрын
Fixed it! I had only update in the sanitizer, instead of account_update
@Adnankhan-dr7qn
@Adnankhan-dr7qn 3 жыл бұрын
great
Pundit Gem For Authorization In Ruby On Rails 7
21:27
Deanin
Рет қаралды 8 М.
User Avatars with Rails Active Storage
11:48
GoRails
Рет қаралды 15 М.
Rails 8 + No Build CSS: How to Ship Frontend Code FASTER 🚀
6:54
Rails Quest by Kaleb Lape
Рет қаралды 2,4 М.
How to Do 90% of What Plugins Do (With Just Vim)
1:14:03
thoughtbot
Рет қаралды 910 М.
Beginner's Guide to the Bash Terminal
1:14:37
Joe Collins (EzeeLinux)
Рет қаралды 2,3 МЛН
Where Does Bad Code Come From?
42:21
Molly Rocket
Рет қаралды 204 М.