diff --git a/app/controllers/movies_controller.rb b/app/controllers/movies_controller.rb index 3b969b4..8f2b634 100644 --- a/app/controllers/movies_controller.rb +++ b/app/controllers/movies_controller.rb @@ -1,7 +1,7 @@ class MoviesController < ApplicationController def index @choices, @movies = Movie.all, [] - (0..15).each{ |num| + (0..10).each{ |num| @movies.append(@choices.sample()) } end diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 5421bc4..9ac861f 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -1,7 +1,7 @@ - Bootcamp + Movie Selections <%= csrf_meta_tags %> <%= csp_meta_tag %> @@ -12,6 +12,19 @@ - <%= yield %> +
+ +
+
+ <%= yield %> +
+ diff --git a/app/views/movies/index.html.erb b/app/views/movies/index.html.erb index aec270a..9e7f19c 100644 --- a/app/views/movies/index.html.erb +++ b/app/views/movies/index.html.erb @@ -1,7 +1,4 @@
-