Upload Multiple Images To Active Storage API! | Ruby On Rails 7 Tutorial

Sdílet
Vložit
  • čas přidán 8. 02. 2023
  • Upload more than one image at a time from your API using this Ruby on Rails 7 Active Storage tutorial!
    Checkout my course(s) at: learn.deanin.com
    Source:
    github.com/Deanout/multiple_a...
    This is a topic I've been asked a lot about and it finally worked its way through my todo list. Today we take a look at how to handle attaching multiple images to an active storage model, as well as how to actually get those images.
    We handle the "Getting" by retrieving based on individual ID and merging the post with the URLs for each of its attachments.
    Join this channel to help support these videos:
    / @deanin
    Follow me on social media:
    linktr.ee/deanin
    If you liked this video, please consider subscribing: t.co/RZ4EwP0F2a
    #Deanin #Software #Programming

Komentáře • 11

  • @Deanin
    @Deanin  Před rokem +6

    Hopefully this answers some questions about how to upload multiple images to a Rails API that is using Active Storage! It's a pretty simple thing to pull off once you know what to do, but good lord figuring out how to make it work the first time can be a nightmare haha.
    Source code is in description!

  • @allenvan7055
    @allenvan7055 Před rokem +1

    Thanks bro, that really helped a lot. Also, would you be able to upload videos about how to deploy a Ruby on Rails project with active storage to Render? Many thanks!

  • @zubairsk1624
    @zubairsk1624 Před rokem

    Brooo
    I was wondering how can i do that
    Thanks alot
    You saved me

  • @TheCardboardWorkshop
    @TheCardboardWorkshop Před rokem

    Thank you for your tutorial! Is it possible to test it without frontend, i.e. cURL or Postman?

  • @azizdevfull
    @azizdevfull Před rokem +1

    amazing : )

  • @zubairsk1624
    @zubairsk1624 Před rokem

    how can i render all posts with images URL?
    thanks

  • @azizdevfull
    @azizdevfull Před rokem +2

    Hello Deanin
    Could you make video about authentication and crud project with rails and react js such us "Blog Project"

    • @Deanin
      @Deanin  Před rokem +2

      I'll add it to the list 🙂

    • @azizdevfull
      @azizdevfull Před rokem +1

      @@Deanin Thank you Alot : )

    • @mikopiko
      @mikopiko Před rokem +1

      I think Deanin already done videos about authentications?

  • @mykovasyl
    @mykovasyl Před rokem

    How do we do this but with files instead of images? I'm trying to recreate this but it doesn't seem to be working.