Sha256: 588e1a04d5c66f314624f6e4de0c63b1dd83ec0af9032b6f31f78461dcd081fc

Contents?: true

Size: 202 Bytes

Versions: 13

Compression:

Stored size: 202 Bytes

Contents

module  Crowdblog
  class AuthorsController < Controller

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

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
crowdblog-0.0.16 app/controllers/crowdblog/authors_controller.rb
crowdblog-0.0.15 app/controllers/crowdblog/authors_controller.rb
crowdblog-0.0.14 app/controllers/crowdblog/authors_controller.rb
crowdblog-0.0.13 app/controllers/crowdblog/authors_controller.rb
crowdblog-0.0.12 app/controllers/crowdblog/authors_controller.rb
crowdblog-0.0.10 app/controllers/crowdblog/authors_controller.rb
crowdblog-0.0.9 app/controllers/crowdblog/authors_controller.rb
crowdblog-0.0.8 app/controllers/crowdblog/authors_controller.rb
crowdblog-0.0.7 app/controllers/crowdblog/authors_controller.rb
crowdblog-0.0.6 app/controllers/crowdblog/authors_controller.rb
crowdblog-0.0.5 app/controllers/crowdblog/authors_controller.rb
crowdblog-0.0.4 app/controllers/crowdblog/authors_controller.rb
crowdblog-0.0.3 app/controllers/crowdblog/authors_controller.rb