Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Show random languages on greeting page.

  • Loading branch information...
commit 102181e86f9f2a0b61f4506abe096da20f29a247 1 parent 5b837f0
@nbeloglazov nbeloglazov authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.