Showing most wanted package on home page properly
This commit is contained in:
parent
10d5bab37c
commit
61cad639a6
2 changed files with 5 additions and 7 deletions
|
|
@ -4,11 +4,11 @@ class WelcomeController < ApplicationController
|
|||
@newest_upload = Screenshot.newest_upload
|
||||
|
||||
# TODO: Use the actually most popular package and not just a random one
|
||||
@most_popular_package = Package.with_screenshots.first
|
||||
@most_popular_package = Package.order(:visits).last
|
||||
|
||||
@package_count = Package.count
|
||||
|
||||
@most_wanted = Package.without_screenshots_most_visits.first
|
||||
@most_wanted_package = Package.without_screenshots_most_visits.first
|
||||
end
|
||||
|
||||
def about
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue