add tag correction support

This commit is contained in:
albert
2013-03-17 23:03:02 -04:00
parent 6cb85fcfdf
commit c6a814ce3f
8 changed files with 46 additions and 5 deletions

View File

@@ -0,0 +1,16 @@
class TagCorrectionsController < ApplicationController
before_filter :member_only
def new
@tag = Tag.find(params[:tag_id])
end
def create
if params[:commit] == "Fix"
@tag = Tag.find(params[:tag_id])
@tag.delay.fix_post_count
end
redirect_to tags_path(:search => {:name_matches => @tag.name})
end
end