• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mroderick / codebar-planner
95%
master: 95%

Build:
Build:
LAST BUILD BRANCH: feature/default-async-email-delivery
DEFAULT BRANCH: master
Repo Added 11 Jul 2025 08:20PM UTC
Token vPb66DExHmn8kKCIdxCr3cvXvGCjXCICV regen
Build 204 Last
Files 188
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH fix/unknown-format-rescue
branch: fix/unknown-format-rescue
CHANGE BRANCH
x
Reset
Sync Branches
  • fix/unknown-format-rescue
  • add-docs
  • add-editor-config
  • add-scout-apm
  • add-sitemap-generator
  • add-tests-for-2515
  • attempt-to-fix-issue-template
  • bundle-ignore-junk
  • chore/upgrade-premailer
  • chore/use-rubygems-sitemap-generator
  • chromium-headless-shell
  • clean-test-optimizations
  • docs/improve-workflow-documentation
  • feature/add-eligible-methods-to-chapter
  • feature/admin-group-members-table
  • feature/chapters-sidebar-v3
  • feature/chapters-sidebar-viewcomponent
  • feature/default-async-email-delivery
  • feature/delayed-email-async
  • feature/eligible-tooltip
  • feature/events-upcoming-past
  • feature/homepage-events-limit
  • feature/meeting-organisers-tomselect
  • feature/nginx-plausible-proxy-clean
  • feature/plausible-analytics
  • feature/seeds-performance-data
  • feature/sendgrid-batch-email-design
  • feature/tom-select-meeting-invitations
  • feature/tom-select-member-search
  • feature/tom-select-member-search-clean
  • feature/tom-select-member-search-final
  • fix-broken-chosen
  • fix-duplicate-waiting-list-entries
  • fix-error-656-undefined-method-event-for-nil
  • fix-member-details-validation-order
  • fix-missing-authentication-error-translation
  • fix-tom-select-timing-2
  • fix-workshop-capacity-checks
  • fix/blank-email-validation
  • fix/cookie-serializer-migration
  • fix/dashboard-eager-loading
  • fix/deduplicate-chapter-members
  • fix/duplicate-workshop-invitations
  • fix/event-description-xss-vulnerability
  • fix/events-controller-fixes
  • fix/events-sponsors-eager-loading
  • fix/find-by-nil-errors
  • fix/find-by-nil-errors-v2
  • fix/flaky-homepage-test
  • fix/flaky-listable-tests
  • fix/flaky-tests
  • fix/gravatar-nil-email
  • fix/homepage-n-plus-one-eager-loading
  • fix/homepage-performance
  • fix/invalid-emails
  • fix/invitation-log-entry-unique-constraint
  • fix/invitation-log-retry-handling
  • fix/invitation-log-retry-v2
  • fix/member-attending-cache
  • fix/monthly-attendance-reminder-delivery
  • fix/nginx-puma-socket-race
  • fix/nil-group-by
  • fix/pagy-deprecation
  • fix/playwright-version-mismatch
  • fix/render-not-found-json-error
  • fix/subscription-unique-index
  • fix/tc-unauthenticated-handling
  • fix/time-dependent-flaky-tests
  • fix/unknown-format
  • fix/workshop-capacity-checks
  • fix/workshop-invitation-resilience
  • freeze-postgres-version
  • imagemagick-check
  • improve-intro-text
  • improve-language
  • improve-og-tags
  • improve-repository-configs
  • increase-delayed-job-max-runtime
  • issue-2367-workshop-feedback
  • issue-2445
  • link-to-chapters-from-pills
  • lock-gem-platforms
  • make-event-rendering-faster
  • master
  • no-og-tags-on-admin
  • optimise-images
  • params-expect
  • policy-tests
  • pr/fix-find-by-nil-errors
  • refactor/mailer-tests
  • remove-2024-impact-report-banner
  • remove-bootsnap
  • remove-go-squared
  • remove-google-analytics
  • remove-meta-partial
  • remove-puma-cluster-mode-config
  • remove-skylight
  • remove-twitter
  • remove-unused-i18n-features
  • remove-unused-new-relic
  • replace-claude-md-with-agents-md
  • speedup-ci-tests
  • speedup-tests
  • split-up-how-to-support
  • stop-pinning-image-processing
  • stop-using-update-attribute
  • update-year-for-impact-report
  • upgrade-ruby
  • use-playwright
  • use-rails-7-1-defaults
  • workshop-invitation-controller

28 Apr 2026 05:44PM UTC coverage: 95.45% (+0.007%) from 95.443%
25068627567

push

github

mroderick
fix: handle ActionController::UnknownFormat with 406 response

Adds rescue_from handler for ActionController::UnknownFormat in ApplicationController,
returning 406 Not Acceptable for unsupported request formats.

This is the idiomatic Rails approach for handling format negotiation errors,
as documented in the Rails Guides and API:
- https://api.rubyonrails.org/classes/ActionController/MimeResponds.html
- https://github.com/rails/rails/blob/main/guides/source/action_controller_advanced_topics.md

Changes:
- Add rescue_from ActionController::UnknownFormat to ApplicationController
- Add render_not_acceptable method returning 406 status
- Add not_acceptable.html.haml error template
- Add comprehensive controller tests for HTML, JSON, and XML formats

Fixes UnknownFormat errors when crawlers/scripts send non-HTML Accept headers.

5 of 5 new or added lines in 1 file covered. (100.0%)

3524 of 3692 relevant lines covered (95.45%)

47.3 hits per line

Relevant lines Covered
Build:
Build:
3692 RELEVANT LINES 3524 COVERED LINES
47.3 HITS PER LINE
Source Files on fix/unknown-format-rescue
  • Tree
  • List 184
  • Changed 118
  • Source Changed 1
  • Coverage Changed 118
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
25068627567 fix/unknown-format-rescue fix: handle ActionController::UnknownFormat with 406 response Adds rescue_from handler for ActionController::UnknownFormat in ApplicationController, returning 406 Not Acceptable for unsupported request formats. This is the idiomatic Rails approa... push 28 Apr 2026 05:48PM UTC mroderick github
95.45
See All Builds (202)

Badge your Repo: codebar-planner

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc