Sha256: c4032a4be216341586a98b65b370de7f50957f9dd92e757fbcaa3275aa31f2c9

Contents?: true

Size: 213 Bytes

Versions: 2

Compression:

Stored size: 213 Bytes

Contents

module  Crowdblog
  class AuthorsController < ApplicationController

    def index
      @authors = User.includes(:authored_posts).sort {|a,b| b.authored_posts.count <=> a.authored_posts.count}
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
crowdblog-0.0.2 app/controllers/crowdblog/authors_controller.rb
crowdblog-0.0.1 app/controllers/crowdblog/authors_controller.rb