about summary refs log tree commit diff stats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/controllers/quotes_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/quotes_controller.rb b/app/controllers/quotes_controller.rb index b6ddb6a..6fa03f2 100644 --- a/app/controllers/quotes_controller.rb +++ b/app/controllers/quotes_controller.rb
@@ -29,7 +29,7 @@ class QuotesController < ApplicationController
29 end 29 end
30 30
31 def random 31 def random
32 picked = Quote.ids.sample 32 picked = Quote.where(state: :published).ids.sample
33 redirect_to quote_url(picked) 33 redirect_to quote_url(picked)
34 end 34 end
35 35