fixes #824
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
class TagAliasCorrectionsController < ApplicationController
|
||||
before_filter :moderator_only
|
||||
|
||||
def new
|
||||
@correction = TagAliasCorrection.new(params[:tag_alias_id])
|
||||
end
|
||||
|
||||
def create
|
||||
@correction = TagAliasCorrection.new(params[:tag_alias_id])
|
||||
|
||||
@@ -13,7 +9,7 @@ class TagAliasCorrectionsController < ApplicationController
|
||||
flash[:notice] = "The fix has been queued and will be processed"
|
||||
end
|
||||
|
||||
redirect_to tag_alias_correction_path(:id => params[:tag_alias_id])
|
||||
redirect_to tag_alias_correction_path(:tag_alias_id => params[:tag_alias_id])
|
||||
end
|
||||
|
||||
def show
|
||||
|
||||
17
app/controllers/tag_alias_requests_controller.rb
Normal file
17
app/controllers/tag_alias_requests_controller.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
class TagAliasRequestsController < ApplicationController
|
||||
before_filter :member_only
|
||||
rescue_from TagAliasRequest::ValidationError, :with => :rescue_exception
|
||||
|
||||
def new
|
||||
end
|
||||
|
||||
def create
|
||||
@tag_alias_request = TagAliasRequest.new(
|
||||
params[:tag_alias_request][:antecedent_name],
|
||||
params[:tag_alias_request][:consequent_name],
|
||||
params[:tag_alias_request][:reason]
|
||||
)
|
||||
@tag_alias_request.create
|
||||
redirect_to(forum_topic_path(@tag_alias_request.forum_topic))
|
||||
end
|
||||
end
|
||||
@@ -1,5 +1,5 @@
|
||||
class TagAliasesController < ApplicationController
|
||||
before_filter :admin_only, :only => [:approve, :destroy, :create]
|
||||
before_filter :admin_only, :only => [:approve, :destroy, :new, :create]
|
||||
respond_to :html, :xml, :json, :js
|
||||
|
||||
def new
|
||||
|
||||
17
app/controllers/tag_implication_requests_controller.rb
Normal file
17
app/controllers/tag_implication_requests_controller.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
class TagImplicationRequestsController < ApplicationController
|
||||
before_filter :member_only
|
||||
rescue_from TagImplicationRequest::ValidationError, :with => :rescue_exception
|
||||
|
||||
def new
|
||||
end
|
||||
|
||||
def create
|
||||
@tag_implication_request = TagImplicationRequest.new(
|
||||
params[:tag_implication_request][:antecedent_name],
|
||||
params[:tag_implication_request][:consequent_name],
|
||||
params[:tag_implication_request][:reason]
|
||||
)
|
||||
@tag_implication_request.create
|
||||
redirect_to(forum_topic_path(@tag_implication_request.forum_topic))
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user