added popular exploration, added order:rank
This commit is contained in:
11
app/controllers/explore/posts_controller.rb
Normal file
11
app/controllers/explore/posts_controller.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
module Explore
|
||||
class PostsController < ApplicationController
|
||||
respond_to :html, :xml, :json
|
||||
|
||||
def popular
|
||||
@post_set = PostSets::Popular.new(params[:date], params[:scale])
|
||||
@posts = @post_set.posts
|
||||
respond_with(@posts)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user