change render nothing calls to head ok
This commit is contained in:
@@ -111,7 +111,7 @@ class ApplicationController < ActionController::Base
|
|||||||
flash[:notice] = "This feature isn't available: #{@exception.message}"
|
flash[:notice] = "This feature isn't available: #{@exception.message}"
|
||||||
respond_to do |fmt|
|
respond_to do |fmt|
|
||||||
fmt.html { redirect_back fallback_location: root_path }
|
fmt.html { redirect_back fallback_location: root_path }
|
||||||
fmt.js { render nothing: true, status: 501 }
|
fmt.js { head 501 }
|
||||||
fmt.json { render template: "static/error", status: 501 }
|
fmt.json { render template: "static/error", status: 501 }
|
||||||
fmt.xml { render template: "static/error", status: 501 }
|
fmt.xml { render template: "static/error", status: 501 }
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ class RelatedTagsController < ApplicationController
|
|||||||
@tag.related_tags = params[:related_tags]
|
@tag.related_tags = params[:related_tags]
|
||||||
@tag.related_tags_updated_at = Time.now
|
@tag.related_tags_updated_at = Time.now
|
||||||
@tag.save
|
@tag.save
|
||||||
|
head :ok
|
||||||
render nothing: true
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user