Skip to content

Instantly share code, notes, and snippets.

@aldesantis
Created June 2, 2016 12:23
Show Gist options
  • Save aldesantis/94ba635e9a2e8b6d06536230543f4b7f to your computer and use it in GitHub Desktop.
Save aldesantis/94ba635e9a2e8b6d06536230543f4b7f to your computer and use it in GitHub Desktop.
class BooksController < ApplicationController
def top_ten
@books = Book.order('reviews_count DESC').limit(10)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment