roelof: I’d put that .select logic into a helper - easier to test and cleaner; you want as little logic in your view as possible
roelof: then select the 16 images in the model, in the order you’ll use them, and then pass them into the view as an array in that order and simply iterate through them without any logic
Dysp: Sinatra gives you much less out of the box, so you add the components you want if you need them. Rails is fully-featured but also more opinionated. Again, if you go with Sinatra I recommend looking at Padrino which is Sinatra on steroids.