diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 738fa2b..c2e313f 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -1,6 +1,7 @@ class HomeController < ApplicationController def show offset = (Asciicast.featured.count * rand).to_i - @asciicast = Asciicast.featured.offset(offset).first || @asciicasts.first + asciicast = Asciicast.featured.offset(offset).first || @asciicasts.first + @asciicast = AsciicastDecorator.new(asciicast) end end