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