fix tag correction display for remote servers

This commit is contained in:
albert
2013-04-08 14:13:04 -04:00
parent ec0252335a
commit 5ae1f8a634
3 changed files with 6 additions and 1 deletions

View File

@@ -4,6 +4,10 @@ class TagCorrectionsController < ApplicationController
def new
@correction = TagCorrection.new(params[:tag_id])
end
def show
@correction = TagCorrection.new(params[:tag_id])
end
def create
@correction = TagCorrection.new(params[:tag_id])

View File

@@ -0,0 +1 @@
<%= raw @correction.to_json %>

View File

@@ -156,7 +156,7 @@ Danbooru::Application.routes.draw do
end
resource :source, :only => [:show]
resources :tags do
resource :correction, :only => [:new, :create], :controller => "TagCorrections"
resource :correction, :only => [:new, :create, :show], :controller => "TagCorrections"
collection do
get :search
end