Class: Crowdblog::AuthorsController
- Inherits:
-
Controller
- Object
- ActionController::Base
- Controller
- Crowdblog::AuthorsController
- Defined in:
- app/controllers/crowdblog/authors_controller.rb
Instance Method Summary collapse
Methods inherited from Controller
Instance Method Details
#index ⇒ Object
4 5 6 |
# File 'app/controllers/crowdblog/authors_controller.rb', line 4 def index @authors = User.includes(:authored_posts).sort {|a,b| b..count <=> a..count} end |