Peter Van de Put
Peter Van de Put

Reputation: 938

Can someone provide an example of shrine/rails with multiple images?

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

Upvotes: -1

Views: 223

Answers (1)

Emilien Baudet
Emilien Baudet

Reputation: 458

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

Upvotes: 1

Related Questions