Skip to content

Commit

Permalink
Merge pull request #212 from epimorphics/spike/resolve-missing-templa…
Browse files Browse the repository at this point in the history
…te-error

Resolve Missing Template error
  • Loading branch information
jonrandahl authored Mar 8, 2024
2 parents 40e1c4b + 3f6cbe4 commit 0836777
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,8 @@ def render_error(status)

respond_to do |format|
format.html { render_html_error_page(status) }
format.all do
render nothing: true, status: status
end
# Anything else returns the status as human readable plain string
format.all { render plain: Rack::Utils::HTTP_STATUS_CODES[status].to_s, status: status }
end
end

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/search_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def index
create
end

# rubocop:disable Metrics/MethodLength, Metrics/PerceivedComplexity
# rubocop:disable Metrics/MethodLength
def create
@preferences = UserPreferences.new(params)

Expand Down

0 comments on commit 0836777

Please sign in to comment.