Build a Blog with Rails Part 20: Upload Cover Images in Rails with ActiveStorage

  Рет қаралды 5,572

GoRails

GoRails

Күн бұрын

Пікірлер: 25
@tylerporter7628
@tylerporter7628 Жыл бұрын
Chris is over here calmly dropping nuggets of wisdom!
@hardestgammaray
@hardestgammaray 8 ай бұрын
Hey Chris. Thank you for the course. It's just what was needed. You are doing a very great job. I am really thankful and wishing you all the best! Once again, thank you!
@GorailsTV
@GorailsTV 8 ай бұрын
You're welcome and so glad to hear that!!
@olegmitnik9617
@olegmitnik9617 Жыл бұрын
Really enjoyed this series. Thank you very much, Chris! Definitely an excellent course for beginners! GoRails🚀
@klnmn3722
@klnmn3722 10 ай бұрын
Wow! Would've never figured out that delete button on my own. Thanks a ton for the knowledge.
@sebb4455
@sebb4455 9 ай бұрын
You're incredible Chris thanks for so so much! amazing teacher
@GorailsTV
@GorailsTV 9 ай бұрын
That makes my day! 💖
@rodandnathalie
@rodandnathalie Жыл бұрын
Thanks for tip about `ActionView::RecordIdentifier`!
@GorailsTV
@GorailsTV Жыл бұрын
Probably one of my most used modules!
@VipulChaudhary-c1f
@VipulChaudhary-c1f 9 ай бұрын
I first like the video and then watch
@estebankrauwezuk9241
@estebankrauwezuk9241 Жыл бұрын
Awesome, thanks!
@olegmitnik9617
@olegmitnik9617 Жыл бұрын
On 17:25 you remove your cover image clicking "Remove cover image" link but when I click this button nothing happens *until I refresh thе page* . Why is it behave like this? Oh, and when I choose a file, it's not display an image - just cover-image-file--name as a text until I update post. Why?
@winkthecat
@winkthecat Жыл бұрын
At the top of your _form partial, you probably have but you need: since the partial doesn't need the instance variable version of blog_post
@snailprogrammer7483
@snailprogrammer7483 10 ай бұрын
Can I adapt this use it without ActionText?
@ellenjunker2172
@ellenjunker2172 10 ай бұрын
What if I'm creating a new blog post with an image, but for some reason I want to remove that image before publishing the blog post? If I try to remove it, I get an error because the path isn't accessible since the blog post isn't created yet
@GorailsTV
@GorailsTV 10 ай бұрын
You can use a little JavaScript to clear the file field. input.value = null
@ellenjunker2172
@ellenjunker2172 9 ай бұрын
@@GorailsTV thank you!
@pranavaher6036
@pranavaher6036 10 ай бұрын
Not able see cover image field once deployed on render. Got below log on render ! Unable to load application: Zeitwerk::NameError: expected file /opt/render/project/src/app/controllers/cover_images.rb to define constant CoverImages, but didn't Is anyone facing the same issue.
@GorailsTV
@GorailsTV 10 ай бұрын
Your controller files need to end with "_controller.rb". Rename it to "cover_images_controller.rb" and make sure the class inside matches that name.
@ricardomordaunt1101
@ricardomordaunt1101 Жыл бұрын
Thanks Chris..
@andresgutgon
@andresgutgon Жыл бұрын
Turbo is cool but would be great to see also file uploads of rails app as an API for a spa with react or similar
@dencam
@dencam Жыл бұрын
Hotwire is pretty decent no need for React.
@AlexanderShelestov
@AlexanderShelestov Жыл бұрын
It's cool, until you need something special. So eventually you come to JS again, and all the knowledge of Stimulus, HotWire and so on is useless :) For example, let's add some file type and size validations and preview.
@GorailsTV
@GorailsTV Жыл бұрын
All doable with Rails and Hotwire.
@AlexanderShelestov
@AlexanderShelestov Жыл бұрын
@@GorailsTV Doable, but I mean you need to twist yourself in a knot to do this :) Really, if you're familiar with JS and some popular libraries it will be much much easier to implement whatever you want. And this knowledge will help you later anyway, so it's better to invest in JS than in Hotwire. Just opinion, of course. Cause I'm familiar with JS (full-stack) and many times tried to adopt all of these "turbo-wires". At the end it was faster to get back to JS. And you also can hire a JS developer to support this features later.
How to Process Webhooks in Rails
41:40
GoRails
Рет қаралды 4,7 М.
Liking Posts With Hotwire in Ruby on Rails
25:21
GoRails
Рет қаралды 2,1 М.
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 17 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 55 МЛН
Ruby on Rails #21 Active Storage With Amazon S3 Cloud Storage
16:11
Better Debugging With The Ruby Debug Gem
26:23
GoRails
Рет қаралды 6 М.
How to use Solid Queue in Ruby on Rails
13:24
GoRails
Рет қаралды 7 М.
Rails 7.1 Authentication From Scratch
44:31
GoRails
Рет қаралды 21 М.