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