fix tag correction display for remote servers
This commit is contained in:
@@ -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])
|
||||
|
||||
1
app/views/tag_corrections/show.json.erb
Normal file
1
app/views/tag_corrections/show.json.erb
Normal file
@@ -0,0 +1 @@
|
||||
<%= raw @correction.to_json %>
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user