Browse files

Show random languages on greeting page.

  • Loading branch information...
1 parent 5b837f0 commit 102181e86f9f2a0b61f4506abe096da20f29a247 @nbeloglazov nbeloglazov committed Jun 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/home_controller.rb
View
2 app/controllers/home_controller.rb
@@ -14,7 +14,7 @@ def greeting
if user_signed_in?
redirect_to :home
else
- @langs = Language.all(sort: [[:name, :asc]]).take(3)
+ @langs = Language.all.shuffle.take(3)
end
end

0 comments on commit 102181e

Please sign in to comment.