routing fixes

This commit is contained in:
albert
2013-02-17 00:59:19 -05:00
parent 301bbbfde5
commit 74c0cee5ee
5 changed files with 26 additions and 1 deletions

View File

@@ -1,9 +1,17 @@
class LegacyController < ApplicationController
before_filter :member_only, :only => [:create_post]
def posts
@post_set = PostSets::Post.new(tag_query, params[:page], params[:limit])
@posts = @post_set.posts
end
def create_post
@upload = Upload.create(params[:post].merge(:server => Socket.gethostname))
@upload.delay.process!
render :nothing => true
end
def users
@users = User.search(params).limit(100)
end