Ruby 3, Hashes and Keyword Arguments - Ryan Bigg

Did you spot the bug? We didn’t for a while. The symptom was that we were seeing completely blank

tag, when we were expecting them to have at least the data attributes populated.The issue here has to do with how Ruby 3 has changed how it processes keyword arguments. In Ruby 2.7, the argument passed to react_component was interpreted as keyword arguments. In Ruby 3, it’s interpreted as a regular argument, where the value of that argument is a Hash object.
Ruby 3, Hashes and Keyword Arguments - Ryan Bigg #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/ruby-3-hashes-and-keyword-arguments-ryan-bigg

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles