I am trying to set up a page that will display one random embedded
object (a
youtube video) out of a pool of 30. That is to say, I want to have 30
videos, and on each page load a video object will be chosen at random
(or in
order, so long as they change) and rendered. Can I do this somehow
that’s
not too round-about with <r:cycle>?
I am trying to set up a page that will display one random embedded object (a
youtube video) out of a pool of 30. That is to say, I want to have 30
videos, and on each page load a video object will be chosen at random (or in
order, so long as they change) and rendered. Can I do this somehow that’s
not too round-about with <r:cycle>?
Thanks,
Nevin
For random order use
<r:random>
<r:option>Choice 1</r:option>
<r:option>Choice 2</r:option>
<r:random>
Farrel
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.