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
Join the discussion

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

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

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

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2023 GoRails, LLC. All rights reserved.