parent
86a262f11b
commit
57bc2cfac8
@ -1,8 +1,8 @@
|
||||
class MoviesController < ApplicationController
|
||||
def index
|
||||
@movies = ["Iron Man", "Batman", "Forrest Gump"]
|
||||
@choices, @movies = ["Iron Man", "Batman", "Forrest Gump"], []
|
||||
(0..15).each{ |num|
|
||||
@movies.append(@movies.sample())
|
||||
@movies.append(@choices.sample())
|
||||
}
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in new issue