Commit dd684891 authored by Albert Yi's avatar Albert Yi

change render nothing calls to head ok

parent d0639afa
......@@ -111,7 +111,7 @@ class ApplicationController < ActionController::Base
flash[:notice] = "This feature isn't available: #{@exception.message}"
respond_to do |fmt|
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.xml { render template: "static/error", status: 501 }
end
......
......@@ -17,7 +17,6 @@ class RelatedTagsController < ApplicationController
@tag.related_tags = params[:related_tags]
@tag.related_tags_updated_at = Time.now
@tag.save
render nothing: true
head :ok
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment