Skip to content

Commit

Permalink
Merge pull request #33 from sealuzh/fix/http-error-codes
Browse files Browse the repository at this point in the history
Fix HTTP status codes for errors
  • Loading branch information
joe4dev committed Feb 2, 2019
2 parents 44fdf4f + 45adb4e commit 0b3d3f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/errors_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class ErrorsController < ApplicationController
# layout 'errors'

def show
render status: status, template: "errors/#{status_code}", formats: [:html]
render status: status_code, template: "errors/#{status_code}", formats: [:html]
end

protected
Expand Down

0 comments on commit 0b3d3f6

Please sign in to comment.