All threads / Sorting Images using Active Storage

Ask A Question


You’re not receiving notifications from this thread.

Sorting Images using Active Storage

Tony Serkis asked in Rails

I'm experimenting with Active Storage to manage images. I got the multiple uploads working, but I want to use acts_as_list position with jQuery sortable to manage their order using ajax, like in the video on this site. In a normal model, I would run a migration to add position to the model. But it looks like I have no access to the Blob or Attachement models. How would I tackle this? Or do I have to go back to using Carrierwave? Any help would be appreciated.

I figured out how to do it. Thanks anyway.

And how did you do that ? A short explanation or a link would be appreciated :).

Hi Tony,
Can you provide me how you have implemented that?

I'm also interested. Thanks in advance

Sorry everyone. I didn't see your replies. IF you're still interested I can probably put something together.

Join the discussion

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

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

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

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2021 GoRails, LLC. All rights reserved.