diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 3378950..1d1d0aa 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -13,6 +13,7 @@ class HomeController < ApplicationController session[:initial_url] = nil redirect_to redirect_url else + @people = Person.find(:all,:order => "RANDOM()", :limit => 4) render layout: 'landing' end end @@ -50,4 +51,5 @@ class HomeController < ApplicationController session[:email] = response['email'] redirect_to '/' end + end \ No newline at end of file diff --git a/spec/models/person_spec.rb b/spec/models/person_spec.rb index b7f86c1..ab0f6be 100644 --- a/spec/models/person_spec.rb +++ b/spec/models/person_spec.rb @@ -81,4 +81,5 @@ describe Person do end end + end \ No newline at end of file