-1

my rails app has an model named listing and for a listing i need to upload multiple photos. so the Photo model also has a position so i can order them. trying to do this with shrine despite all the information all attempts fail. can someone provide a working example including the controller and model model listing name has_many :photos

model photo image_data position:integer

Peter Van de Put
  • 878
  • 10
  • 26

1 Answers1

1

You can find an example here : https://github.com/ebaudet/DemoShrine

Emilien Baudet
  • 428
  • 4
  • 10