Skip to content

fix: resolve multiple regressions from prettier/rubocop refactor#419

Merged
natsuki615 merged 2 commits intosc0v:masterfrom
tomas-goncalves:fix/params-expect-permitted-attributes
Apr 2, 2026
Merged

fix: resolve multiple regressions from prettier/rubocop refactor#419
natsuki615 merged 2 commits intosc0v:masterfrom
tomas-goncalves:fix/params-expect-permitted-attributes

Conversation

@tomas-goncalves
Copy link
Copy Markdown
Contributor

Fixes several bugs introduced by the prettier v3 / rubocop refactor in #393:

  • params.expect calls in faq, participants, and waivers controllers had permitted_attributes wrapped in an extra array, causing "param is missing or the value is empty or invalid" errors
  • participants#show assigned to @show instead of @participant, causing NoMethodError on the profile page
  • _video.html.erb had javascript_include_tag as bare text (missing <%= %>), so the YouTube API was never loaded; videoId also used .to_json without raw(), producing HTML-escaped &quot; in JS
  • tools/show.html.erb called the removed is_hardhat? instead of hardhat?

@tomas-goncalves tomas-goncalves force-pushed the fix/params-expect-permitted-attributes branch 3 times, most recently from a139f52 to c3eb868 Compare March 27, 2026 18:59
- Unwrap permitted_attributes from array in params.expect calls
  (faq, participants, waivers controllers)
- Assign to @Participant instead of @show in participants#show
- Restore javascript_include_tag ERB tag and fix videoId HTML escaping
  in safety briefing video partial
- Call hardhat? instead of removed is_hardhat? method in tools/show
@tomas-goncalves tomas-goncalves force-pushed the fix/params-expect-permitted-attributes branch from c3eb868 to 8dc6f5b Compare March 29, 2026 05:11
@katiez667 katiez667 self-requested a review April 2, 2026 00:16
@natsuki615 natsuki615 merged commit d272f32 into sc0v:master Apr 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants