Skip to content

Fix undefined method 'bootstrap_svg' on the empty occurrences state - #2

Merged
rickychilcott merged 1 commit into
mainfrom
fix-missing-bootstrap-svg
Jul 31, 2026
Merged

Fix undefined method 'bootstrap_svg' on the empty occurrences state#2
rickychilcott merged 1 commit into
mainfrom
fix-missing-bootstrap-svg

Conversation

@rickychilcott

Copy link
Copy Markdown
Owner

Branched off main, independent of #1.

app/views/solid_errors/occurrences/_collection.html.erb:56 calls a bootstrap_svg helper that does not exist — not in this gem, not in any dependency:

$ grep -rn "bootstrap_svg" . --include="*.rb" --include="*.erb"
app/views/solid_errors/occurrences/_collection.html.erb:56

It only fires on the occurrences.any? false branch, which is why nobody has hit it. Reproduced before the fix:

SolidErrors::ErrorsController.render(
  partial: "solid_errors/occurrences/collection",
  locals: {occurrences: [], page: nil, titled: false}
)
# => ActionView::Template::Error: undefined method 'bootstrap_svg'

Every other icon in the codebase is an inline SVG (_actions, _resolve_button, _delete_button), so this one is now too — Bootstrap Icons list-ul, at 24px to sit beside the text-2xl label.

No test: there is no way to make a request against the engine yet, since it is not mounted in the dummy app. #1 adds that mount, so once it lands this becomes cheap to cover — happy to follow up.

Suite: 5 runs, 16 assertions, 0 failures.

🤖 Generated with Claude Code

`_collection.html.erb` called a `bootstrap_svg` helper that has never
existed in this gem or its dependencies, so rendering an error with no
occurrences raised ActionView::Template::Error. Every other icon in the
codebase is an inline SVG, so this one is too.

Reproduced before the fix with:

    SolidErrors::ErrorsController.render(
      partial: "solid_errors/occurrences/collection",
      locals: {occurrences: [], page: nil, titled: false}
    )
    # => undefined method 'bootstrap_svg'

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@rickychilcott
rickychilcott merged commit 4353036 into main Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant