I got a page that includes 15 pictures and I must redirect user to the details page if one of them is clicked. so, I have 15 different routes like 1,2,3,...15. But as I know, I cant give dynamic variable to #link-to helper. So how am I gonna make every picture go to its own route? this is how my index page .hbs
looks like :
This is how I print every picture. And this is how am I trying to go to routes :
<img src= width="200">
so, there is ??? because I dont know what to do. Thanks!
Aucun commentaire:
Enregistrer un commentaire