~/talk

From Cryptic Error Messages To Rails Contributor

Talkat RailsConf 2024 · 2024-05-07..05-09· [ruby-on-rails]
slides:none on file

A Rails form error traced to a nil model causes either ParameterMissing or silent failures depending on context, so the fix changes form_with’s model default from nil to false, adds an early error (later softened to a deprecation), and updates form_for consistency and tests. Diagnosis uses server logs, web console, api.rubyonrails.org, bundle open, helper.method.source_location and bin/test. Result is a merged PR that passes tests and a planned deprecation release. changed form_with default from nil to false added test and deprecation warning

AI-written summary · about

  1. 0:00Introduction
  2. 2:13Finding contributions
  3. 4:16Debugging common errors
  4. 5:38Identifying the root cause
  5. 9:21Analyzing form behavior
  6. 13:24Modifying Rails source code
  7. 18:49Testing and validation
  8. 22:33Pull request and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.