diff --git a/app/controllers/movies_controller.rb b/app/controllers/movies_controller.rb index 5b1fd53..bf97e36 100644 --- a/app/controllers/movies_controller.rb +++ b/app/controllers/movies_controller.rb @@ -1,5 +1,9 @@ class MoviesController < ApplicationController def index @movies = ["Iron Man", "Batman"] + (0..15).each{ |num| + @movies.append(num.odd? ? "Batman" : "Iron Man") + @movies.append("Forrest Gump") + } end end