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

MushroomObserver / mushroom-observer / 9671553913
94%
main: 96%

Build:
Build:
LAST BUILD BRANCH: jdc-new-import-preview
DEFAULT BRANCH: main
Ran 26 Jun 2024 12:39AM UTC
Jobs 1
Files 768
Run time 1min
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

26 Jun 2024 12:32AM UTC coverage: 94.396%. First build
9671553913

Pull #2197

github

nimmolo
Fix "Turn off admin mode" link in nav menu

Fixes #2168. Adds test. @JoeCohen - In case you tried to fix this and got stumped, it wasn't working because this link needs to submit a "POST" request.

Here's how to build links like this:
- the link must use `button_to`, rather than a `link_to`
- the button needs a couple extra classes to style it like an `<a>` if that's what we want

Rails supposedly allows `link_to` with `data: { turbo_method: :post }` but in reality (at least on MO) it doesn't work, the CSRF stops the link from working.

Also, the [Turbo docs themselves state](https://turbo.hotwired.dev/handbook/drive#performing-visits-with-a-different-method) "you should also consider that for accessibility reasons, it’s better to use actual forms and buttons for anything that’s not a GET." The Rails `button_to` helper builds a form and a button, as you probably know.
Pull Request #2197: Fix "Turn off admin mode" link in nav menu

26158 of 27711 relevant lines covered (94.4%)

556.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 9671553913.1 26 Jun 2024 12:39AM UTC 0
94.4
GitHub Action Run
Source Files on build 9671553913
Detailed source file information is not available for this build.
  • Back to Repo
  • Pull Request #2197
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