parent
77465c4ab0
commit
94f206d991
@ -1,8 +1,8 @@
|
|||||||
class MoviesController < ApplicationController
|
class MoviesController < ApplicationController
|
||||||
def index
|
def index
|
||||||
@choices, @movies = ["Iron Man ⎊", "Batman 🦇", "Forrest Gump 🏃"], []
|
@choices, @movies = Movie.all, []
|
||||||
(0..15).each{ |num|
|
(0..15).each{ |num|
|
||||||
@movies.append(@choices.sample())
|
@movies.append(@choices.sample())
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in new issue