Ask A Question

Notifications

You’re not receiving notifications from this thread.

Upload Cover Images in Rails with ActiveStorage Discussion

Hey Chris, thanks for the video. Will the MiniMagick gem work with the method in your method? Because I'd like to upload any image then have it resized to certain dimensions and orientated the correct way automatically for me.

Reply

You can. Check out the ActiveStorage guide for variants.

Reply

Hello Chris, I would like to ask for the code I have followed your directions but in the "purge_later" section then rails will give an error in the form of "ActionController::RoutingError (uninitialized constant BlogPosts::CoverImagesController):" but when using the "purge" line of code then rails will run normally, could you explain at least what is wrong? even though I have compared and there is no difference.
Thank you

Reply

Hi Chris, thanks for the lecture, is there a way you recommend to crop the image before the upload?

Reply

Thank you for that free series!

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 86,796+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.